我有一个带有Single<code>UIViewController的View应用程序UITableViewController,并尝试通过按下UIViewController
(我的主视图)中的按钮来显示UITableViewController
。我的按键(IBAction)包含以下代码,我正试图通过这些代码推送我的UITableViewController
视图并显示它:
DataViewController *dataController = [[DataViewController alloc] initWithNibName: @"DataViewController" bundle:nil];
[self.navigationController pushViewController:dataController animated:YES];
[dataController release];
My DataViewController
is not at all getting pushed into the stack and displayed,
Also I have checked that in the code above, self.navigationController=nil
Probably this is the source of the problem. If so, how to rectify it?
请帮忙。