How can we push UISplitVIewController to a UINavigationController

我是研究僧i 提交于 2019-12-19 18:23:55

问题


Is it possible to push SplitViewController on Navigation Controller?

I am getting this error :

Split View Controllers cannot be pushed to a Navigation Controller <UINavigationController: 0x9618830>.

Thank you.


回答1:


This is because Apple doesn't want you to push split view controllers into navigation controllers. Their guidelines say that if you use a UISplitViewController, it has to be visible at all times in your app, except from overlaying it with modal view controllers.




回答2:


I did manage to put a splitview controller as an item in a tab bar controller



来源:https://stackoverflow.com/questions/6855454/how-can-we-push-uisplitviewcontroller-to-a-uinavigationcontroller

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