Guest User

Untitled

a guest
Aug 19th, 2018
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. How to load a table from a .nib when an item in a previous table is selected?
  2. [tableView setDelegate:self];
  3.  
  4. - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
  5.  
  6. if(indexPath.section == 0){ // the first row
  7.  
  8. MyView *myView = [[MyView alloc] init];
  9.  
  10. [self.navigationController pushViewController:myView animated:YES];
  11.  
  12. [myView release];
  13.  
  14. }
  15.  
  16. }
Add Comment
Please, Sign In to add comment