How to set the navigation bar to the top in Table View?

风流意气都作罢 提交于 2019-12-23 23:02:35

问题


How can i set the navigation bar to the top in a Table View within storyboard interface builder? Is it possible?

If i add a navigation bar to my Table View i get it under my records only!

I'm using Xcode 4.3.2


回答1:


You should not add the navigation bar yourself. Interface builder will do that automatically when a scene is embedded into a navigation controller or part of the navigation stack. So if your tableview is the root controller choose your scene and then go to:

Editor > Embed in > Navigation Controller

Otherwise the navigation bar will be added automatically when you connect a segue from another controller (that is part of the stack) to your tableview controller.



来源:https://stackoverflow.com/questions/11078844/how-to-set-the-navigation-bar-to-the-top-in-table-view

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!