views:

38

answers:

1

looking for a tutorial, uitableview with each cell opening into a new xibs.

+1  A: 

I don't think you'd benefit from a full sample. The following function will help though. You need to implement the delegate method for didSelectRowAtIndexPath and this is where you create the new controller for your new view and load it.

- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
        YourViewController *controller =  [[YourViewController alloc] initWithNibName:@"YourViewController"bundle:nil];         
        [[self navigationController] pushViewController:yourViewController animated:YES];   
        [yourViewController release]; // don't leak memory
        }

Based on the row number you can decide which nib to load.

NeilInglis