• 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 scene and UIViewController
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Storyboard scene and UIViewController


  • Subject: Re: Storyboard scene and UIViewController
  • From: Ben Kennedy <email@hidden>
  • Date: Thu, 03 Nov 2011 12:12:42 -0700

On 03 Nov 2011, at 12:05 pm, Eric E. Dolecki wrote:

> This is great, but I have to generate all the UI for the view controller in
> code in the class. Is it possible to layout a scene in a Storyboard and
> associate it with the view controller so that the UI in the scene will be
> used instead of me doing it all in code?

Sure.  Create your scene in the storyboard, assign an "identifier" string to it in the Attributes inspector, and then instantiate it using -[UIStoryboard instantiateViewControllerWithIdentifier:].

-b

--
Ben Kennedy, chief magician
Zygoat Creative Technical Services
http://www.zygoat.ca

_______________________________________________

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 scene and UIViewController
      • From: "Eric E. Dolecki" <email@hidden>
References: 
 >Storyboard scene and UIViewController (From: "Eric E. Dolecki" <email@hidden>)

  • Prev by Date: Re: Storyboard scene and UIViewController
  • Next by Date: Re: Storyboard scene and UIViewController
  • Previous by thread: Re: Storyboard scene and UIViewController
  • Next by thread: Re: Storyboard scene and UIViewController
  • Index(es):
    • Date
    • Thread