I spent almost a day with this issue, someone please help me out! I’m trying to push the view from a tableview controller. It’s not responding.
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath {
NewsDetailViewController *ndvc = [[NewsDetailViewController alloc] initWithNibName:@"NewsDetailViewController" bundle:nil];
[self.navigationController pushViewController:ndvc animated:YES];
}
I am guessing that your
self.navigationControllerisnil. And from the comments I get that you do not use a Navigation Controller. I would say, create a Window Based Application with the Navigation Controller as therootViewControllerand inside that, add thetableViewto the view of thenavigationControllerand then you should have no problem.