不在 modalView 上显示 UINavigationController
我问
[self presentModalViewController:searchRegionController animated:YES];
之后我尝试添加 NavigationController
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Add" style:UIBarButtonItemStyleBordered target:self action:@selector(next:)] autorelease];
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target:self action:@selector(cancelAdd:)] autorelease]
self.navigationItem.titleView = someView;
I'm asking
[self presentModalViewController:searchRegionController animated:YES];
after that I try to add NavigationController by
self.navigationItem.rightBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Add" style:UIBarButtonItemStyleBordered target:self action:@selector(next:)] autorelease];
self.navigationItem.leftBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"Cancel" style:UIBarButtonItemStyleBordered target:self action:@selector(cancelAdd:)] autorelease]
self.navigationItem.titleView = someView;
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
所以就这样做
在 searchRegionController 类中
希望这有帮助。
so do like this
in the searchRegionController class
hope this helps.
试试这个:
在 ViewController 的 viewDidLoad 中执行以下操作:
Try this:
And in the
viewDidLoad
of ViewController do :