Re: Moving from nib to code with custom controller.
Re: Moving from nib to code with custom controller.
- Subject: Re: Moving from nib to code with custom controller.
- From: Kevin Brock <email@hidden>
- Date: Wed, 31 Mar 2010 16:16:32 -0700
On Mar 31, 2010, at 8:01 AM, James Cicenia wrote:
> Hello -
>
> I have always used IB before. I added my controller and linked it all up and it worked great.
>
> Now, I have to move this instead to code. I am confused on how to do this.
>
> 1) I have a custom view controller. (FeaturedViewController)
> 2) I have a UIScrollView (FeaturedScrollView)
> 3) I normally linked it up with IB
> scrollView = FeaturedViewController
> delegate = FeaturedViewController
> view = FeaturedViewController.
>
> SO.. How do I set this up in my init of my master Controller (HomePageController)
Take a look at the ViewController sample, from Apple's web site. It sounds like you're asking for exactly what it's demoing.
http://developer.apple.com/mac/library/samplecode/ViewController/
Kevin
>
> Thank you very much
> James
>
>
>
>
>
>
>
> _______________________________________________
>
> 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
_______________________________________________
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