Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Mockup & CodeGen, iPhone & iPad
($9.99)

Make your own iPhone apps
and run them live!
(free)

Manu
($0.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 07-20-2009, 12:52 PM   #4 (permalink)
ganta
New Member
 
Join Date: Nov 2008
Posts: 12
Default

What nobre said is true. except you can still use initWithNibName as an initializer. Just pass in nil for the name and nil for the bundle, and the method acts essentially the same as regular init. Implement the loadView method in your view controller. And in this implementation, set self.view. Whatever you set self.view to in the loadView method will be the root view of your viewcontroller. You can access this view in other classes by using something similar to:

Code:
[window addSubview: myViewController.view]
When the delegate requests the view controller's view property, If the property is still nil, the loadView method will be called automatically.
ganta is offline   Reply With Quote
 

» Advertisements
» Stats
Members: 158,745
Threads: 89,200
Posts: 380,561
Top Poster: BrianSlick (7,129)
Welcome to our newest member, Ashleyk27
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 05:28 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.