site_archiver@lists.apple.com Delivered-To: cocoa-dev@lists.apple.com 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 (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/apple%40kevin.com
This email sent to apple@kevin.com
_______________________________________________ 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/site_archiver%40lists.apple... This email sent to site_archiver@lists.apple.com