how can i access a value on a cell in tableview from different class?

Posted by ahmet732 on Stack Overflow See other posts from Stack Overflow or by ahmet732
Published on 2010-04-07T09:26:33Z Indexed on 2010/04/22 11:53 UTC
Read the original article Hit count: 268

Filed under:

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

© Stack Overflow or respective owner

Related posts about objective-c