سؤال

I just dragged out a UISplitView from the storyboard and set the classes of the root and detail view controllers. I am wondering how to initialize my UITableViewController (as it needs some setup before it is read to be used). This might be easier if I create the UISplitView programmatically. Still, is there a way for me to set up my UITableViewController in the UISplitView? Thanks!

هل كانت مفيدة؟

المحلول

You can just drag and drop a UISplitView to your storyboard and create master view and detail view classes in your bundle. Then assign each class to each viewcontrollers in xib :

enter image description here

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top