Evening all!
Loading a new view controller from a table view controller has never been an issue for me due to its simplicity. However, I'm now attempting to load different view controllers when the user taps a different cell within the table view.
For example...
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
DetailViewController *newView = [[DetailViewController alloc] initWithNibName:@"DetailViewController" bundle:nil];
[self.navigationController pushViewController:newView animated:YES];
}
Obviously, this will load the 'DetailViewController' when any cell pressed. So, does anyone have any idea how to modify this to load a completely different view controller depending on the title of the cell?