I have got response from services and I have got latitude value and I copied into an array.
Now I want to pass the array when I click the next views row.
I passed places earlier. In second view UITableViewController is there if I click the particular row then it should be printed the rows text value and particular text’s latitude value…..?
Is this possible…
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *myText=[places objectAtIndex:indexPath.row];
NSLog(@"his is selected lattidude value:%@",myText);}
Here I am printing the row’s text with this I need to print the latitude value of each one….please help me.
in your
SecondViewControllerin .h file justand in .m file just synthesize it like bellow..
and in your
FirstViewControllerclass just push with bellow codei hope this help you…