how can i access a value on a cell in tableview from different class?
- by ahmet732
I can hold the value of touched cell but I cannot pass that value to another class or call from that class.
SearchTableViewController.m
**deneme= [[NSMutableArray alloc]init];
deneme=[tableData objectAtIndex:indexPath.row];
NSLog(@"my row = %@", deneme); //I can hold one of the selected or touched rows in table
HistoryTableViewController.m
**SearchTableViewController *obj = (SearchTableViewController *)[self.tabBarController.viewControllers objectAtIndex:11];
NSLog(@"my 2nd row= %@", [obj deneme]); //It doesn't retrieve here