I am using google Api for custom search and have done the json Parsing. I succesfully retreived the values from JSON and store that data in Dictionary.
NSArray *latestdata = [(NSDictionary*)[responseString JSONValue] objectForKey:@"items"];
Now I have two array in it link and title
titleArray = [latestdata valueForKey:@"title"];
linkArray = [latestdata valueForKey:@"link"];
Now i use the title array to store the title at CellForRowAtIndexpath and i want to use the link for that specified or selected index at DidSelectIndexPathAtRow.
I have already filled the cell by the title array as below
cell.textLabel.text = [title objectAtIndex:indexPath.row];
But now i dont when i select the row at table how can i get the link for that using the link array at didSelectRowAtIndexPath method.
What could be the solution for this.
Try following code at
didSelectRowAtIndexPathI hope
titleis global array.