我是iOS开发的新手,还没有以编程方式尝试过此操作。我希望将此工作放在情节提要中。
我正在遵循XCode 6.1中的XCode 4.5中的这个过时的教程,以创建由一个导航控制器连接的一系列视图。http://youtu.be/rgd6mCuzlEc
创建第二个视图控制器后,无法双击导航栏来更改名称,也无法向其添加栏按钮。
I have a Segue going from bar button "Item" from view 1 to 2. Notice in the "View Controller Scene" there is no navigation item. If I add any elements to the view controller they fall under "View" and not under "View Controller", unlike view controller 1 where it falls under "one".
Is this a limitation on XCode? Am I using the wrong Segue (Show)? Is there a hidden setting or customization I'm missing?
I actually have this working for 2 view controllers and failing the 3rd in a separate project but I don't know what I did to do that so I'm pretty sure it's possible I just cannot reproduce..
EDIT: Workaround Instead of the new adaptive SHOW segue, use the deprecated PUSH segue, add the bar button items, then change back to the adaptive SHOW segue.
尝试将导航项添加到控制器,它应该可以正常工作
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句