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

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

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

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum

View Single Post
Old 01-01-2009, 08:13 PM   #11 (permalink)
PhoneyDeveloper
New Member
 
Join Date: Sep 2008
Posts: 1,431
PhoneyDeveloper is on a distinguished road
Default

What you're calling autoloading is just the chaining of references from the main nib to other dependent nibs. Too much memory usage is always a concern so in my code I don't create view controllers unless they're about to be used and I release them when they're done. I think that would be the common pattern. So I don't chain all the view controllers so the main nib depends on them.

The view controller and its main view, which comes from its nib, are separate objects, although closely related of course. When you alloc/init a view controller its view isn't loaded yet. The nib is loaded (shortly) later when the view property is requested when some code adds the view controller's view to the view hierarchy that runs to the app window. This usually happens by a nav controller or tab bar controller but you can do it manually if you wish.

So, viewcontroller.otherviewcontroller refers to the view controller and viewcontroller.view refers to the view and loads it from the nib if required. OtherviewController's nib is loaded when its view property is requested (by some code).

Regarding hiding the navbar, it's a checkbox in IB to set it to hidden.
PhoneyDeveloper is offline   Reply With Quote
 

» Advertisements
» Online Users: 423
12 members and 411 guests
aziz, diane21, elhanche, freewind, guillermotricia, hrushikeshaddon, iram91418, nicsmotherman, PixelEnvision, poke, ryantcb, subhan1
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,609
Threads: 94,084
Posts: 402,784
Top Poster: BrianSlick (7,990)
Welcome to our newest member, diane21
Powered by vBadvanced CMPS v3.1.0

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