UISplitView with multiple storyboards

杀马特。学长 韩版系。学妹 提交于 2019-12-11 20:11:26

问题


I have an iPhone app containing overview (table view) and multiple detail views (different kinds of views). For the purpose of modularity, all detail views use separate storyboards.

Now I need to make my app universal. For that, I want to use an UISplitView with the overview as master view and load the details views on the right. However, I am not sure that it is possible to do it with my multiple storyboards.

What are my possibilities? I have to keep the app modular. I have already separate storyboards for iPhone and iPad but that doesn't really help me yet.

I would be grateful for any suggestions.


回答1:


In case that someone else is interested on the topic... I got it working.

I just instantiate the controller I need from the storyboard where it is located and load it in the detail view (similarly to the MuptipleDetailViews sample). Of course, I had to adjust the entire navigation related to the respective controllers and, especially, to modify the methods for taps on controls and table cells.

Hope that will help someone else working on iPad apps. :)



来源:https://stackoverflow.com/questions/19175785/uisplitview-with-multiple-storyboards

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