iPhone开发-切换视图
因此,我以编程方式创建了一个使用导航控制器的 tabbarcontroller(基于 Jeff Fithian 的
我采用了程序化方法,因为这是启动有效项目的唯一方法,但现在我真的陷入了困境。
有什么想法吗?
我确信某个地方有一个教程可以解决这个问题,但是经过四天的寻找(我正处于中大西洋“雪”紧急情况中)我什么也没发现......
So I have programatically created a tabbarcontroller that uses navigation controllers(based on Jeff Fithian's example). Now I need to push an additional page onto the navbarcontroller (ie I have clicked on an item on the list) but I can't quite figured out how to get a reference to the navigation controller of the current view from it's view controller.
I went with the programmatic approach, because it was the only way to start out the project that worked, but now I am getting really bogged down.
Any ideas?
I am sure there is a tutorial somewhere that addresses this, but after four days of looking (I am in the middle of the MidAtlantic "snow" emergency) I have found nothing...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以使用
.navigationController
属性从视图控制器中找到导航控制器。You can find the navigation controller from the view controller with the
.navigationController
property.