• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Storyboard SplitViewController example
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storyboard SplitViewController example


  • Subject: Re: Storyboard SplitViewController example
  • From: Matt Neuburg <email@hidden>
  • Date: Sun, 25 Dec 2011 12:18:40 -0800

On Dec 25, 2011, at 12:00 PM, email@hidden 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 (email@hidden)

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:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Storyboard SplitViewController example
      • From: Roland King <email@hidden>
  • Prev by Date: Re: Storyboard SplitViewController example
  • Next by Date: How to update preview in NSPrintPanel?
  • Previous by thread: Re: Storyboard SplitViewController example
  • Next by thread: Re: Storyboard SplitViewController example
  • Index(es):
    • Date
    • Thread