PopoverView *foo = [[PopoverView alloc] initWithNibName:@"PopoverView" bundle:nil];
// Here you pass through properties if you need too.
// ...
UINavigationController *navC = [[UINavigationController alloc] initWithRootView:foo];
[foo release];
[self.navigationController presentModalViewController:navC animated:YES];
3 回答
在viewDidLoad中使用此代码 .
这会在您的视图中添加导航栏 .
这可能对你有帮助
这就是你向模态添加导航栏的方法 .
尝试将此添加到您的View do load