whats the best way, to init a DetailView from a TableView with data?
I need to “send” a object to fill all the labels and ImageViews.
My Code for changing the view:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
[self.navigationController pushViewController:[self.storyboard instantiateViewControllerWithIdentifier:@"detailView"] animated:true];
}
Maik
Just take the ViewController instantiated from the storyboard and set it up before you push the ViewController