用模态视图调用导航控制器?
我有一个问题,我做了这个:
Impostazioni *impostazioni=[[Impostazioni alloc] initWithNibName:@"Impostazioni" bundle:nil];
[self.navigationController presentModalViewController:aiuto animated:YES];
但我想以这种方式保留导航栏:
[self.navigationController pushViewController:aiuto animated:YES];
[self.navigationController.navigationBar.backItem setTitle:@"iCalory"];
并且我想使用presentModalView 我该怎么做?谢谢
I have a problem, I have made this:
Impostazioni *impostazioni=[[Impostazioni alloc] initWithNibName:@"Impostazioni" bundle:nil];
[self.navigationController presentModalViewController:aiuto animated:YES];
But I want to preserve the navigation bar in this modality:
[self.navigationController pushViewController:aiuto animated:YES];
[self.navigationController.navigationBar.backItem setTitle:@"iCalory"];
And I want use presentModalView how can I this? thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
只需将视图控制器添加到新的导航控制器并以模态方式呈现导航控制器即可:
Just add your view controller to a new navigation controller and present the navigation controller modally:
要在代码中添加导航控制器,
To add navigation controller in your code,