iPad landscape single navigation bar

风流意气都作罢 提交于 2019-12-08 09:30:54

问题


My app in iPad mode and landscape calls for a single navigation bar its proving troublesome.

The idea is that in landscape there wouldnt be 2 separate nav bars for Master and Detail : see below (Images taken from Google Images and modified, not my project)

but instead there would be a single nav bar, like so:

I'm trying to avoid very hackish methods because my navs use a lot of custom stylings but the only way I can think at the moment is to resize the view in the SplitView superclass and override the nav bar, but wanted to see if anyone else had any success before Any ideas?


回答1:


The way that the split view controller works, it displays two separate view controllers. If you want to have the unified navigation bar, don't use a split view controller, just use a regular view controller, and embed the table view in your normal view, and implement the appropriate protocols to control the table



来源:https://stackoverflow.com/questions/11141631/ipad-landscape-single-navigation-bar

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