I am seeing a strange app behaviour when I try to push some view controller from uitableviewcontroller subclass.
Let me explain it first. I have created main nib which is linked to rootViewController (appDelegate) that is inside navigationController. In that nib a have added a UITableView and a custom UITableViewController subclass News_TableViewController like it’s shown in the screenshot:

When I try to execute the code bellow I get nothing:
My_WebView *webView = [[My_WebView alloc] initWithNibName:@"My_WebView" bundle:nil];
[self.navigationController pushViewController:webView animated:YES];
Then I checked self.navigationController object but i gives me NULL:
NSLog(@"OBJ: %@",self.navigationController);
How is that I am not geting the reference to the navigationController despite of my custom class actually lives under navigationController ?
Thanks
As you’ve mentioned, News_TableViewController is a UITableViewController, hence a UIViewController. I think you did’nt initialize the navigationController! A recommended way is to init the navigationController in your appDelegate class’ delegate method as follows:
where RootViewController is the News_TableViewController class.