iOS Development: How can I build a complex structured iPad Application?

旧时模样 提交于 2019-12-24 15:20:36

问题


I have a scenario with 3 sub-applications embedded into a main one. I'm trying to use the splitviewcontroller to change my detailview's content, but I couldn't replace the detailviewcontroller without losing the popover.

Questions: 1-How can I build a organized structure to maintain my project? 2-How can I replace my detailviews viewcontroller by another? 3-Should I use storyboard or separated XIB's? 4-Can I "call" a splitviewcontroller from a simple view? (Login(single)->AppSelection(single)->App1(splitview).

Here is a sketch of my project


回答1:


Looks like you've already got it mostly storyboarded, so I would definitely recommend that approach!

I wasn't able to figure out how to segue to a split view using just storyboards and nothing else. You will have to get the button press and replace the window's rootViewController with your split view (which you could load from a storyboard, or just a plain nib, if you wanted.)



来源:https://stackoverflow.com/questions/9726007/ios-development-how-can-i-build-a-complex-structured-ipad-application

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