问题
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