On Dec 25, 2011, at 12:00 PM, cocoa-dev-requ...@lists.apple.com wrote: > I am very new to Xcode and iPad development. I am trying to do the following: > > I have an initial NavigationController and ViewController. I am trying to go > from a button on the ViewController to a SplitViewController using > Storyboards but I can't seem to get it to work. Does anyone have an example > of how to do it? Or an example of how to hand code it?
First of all you need speak accurately. There is no such thing as a NavigationController or a ViewController, and if you mean UIViewController there's no such as a button on one since a UIViewController is not a UIView. And then "go from" doesn't mean much either. Do you mean you want to draw a connection? Or that you'd like the user to be able to tap the button and cause a split view to appear? I'd avoid storyboards if I were you; they actually just make your life more complicated. And I'd avoid UISplitViewController! They are poorly written and rather inflexible. On iOS 5 if you want to split the view into two, you can easily do better than UISplitViewController, because you're now allowed to write your own container / parent view controllers. Here's an example modeled after the iOS 5 iPad Mail app: <https://github.com/mattneub/Programming-iOS-4-Book-Examples/blob/master/convertedToIOS5/p560p575splitViewNoPopover/p560p575splitViewNoPopover/MySplitViewController.m> m._______________________________________________ Cocoa-dev mailing list (Cocoa-dev@lists.apple.com) Please do not post admin requests or moderator comments to the list. Contact the moderators at cocoa-dev-admins(at)lists.apple.com Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com