реализуйте следующее в следующем классе viewController
in interface
ObjectClass* object;
- (id)initWithId:(id)object;
в реализации
- (id) initWithId:(id)object
{
self = [super init];
if (self)
{
object = [object retain];
}
}
и в методе didSelect
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
// get the object
nextVC* next = [[nextVC alloc] initWithId:object];
[self.navigationController pushViewController:next animated:YES];
[next release];
}
таким образом вы можете передать любойОбъект для вашего следующего представления, это будет вызвано перед viewDidLoad следующего класса ..