Hello,
I am currently working with the Storyboard and I created a tableview inside a Navigationcontroller. I have created a Detail View Controller that has not been linked in the Storyboard (Do I need to link the view to the tableview and what is the deal? As Push or Modal)
The current didSelectRowAtIndexPath is:
Code:
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *__strong)indexPath {
DetailViewController *detail = [self.storyboard instantiateViewControllerWithIdentifier:@"Detail"];
detail.item = (MWFeedItem *)[itemsToDisplay objectAtIndex:indexPath.row];
[self.navigationController pushViewController:detail animated:YES];
[tableView deselectRowAtIndexPath:indexPath animated:NO];
[self.tableView deselectRowAtIndexPath:indexPath animated:YES];
}
Do I need to specify more information about the DetailViewController (.h,.m) or do somebody wants to see the storyboard?
Thanks for helping.