Re: Storyboard scene and UIViewController
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