I've got a fairly simple iOS 4 app, built from the Utility Application 
stationery. I've noticed that the FlipsideVeiwController's -viewDidUnload 
method is not called when that view controller is dismissed/dealloced (even 
though -dealloc is).

I can't tell from the docs for -viewDidUnload if it is not guaranteed to be 
called when cleaning up. It does say that it's called for low-memory 
situations, but also says it's called as a counterpart to -viewDidLoad, which 
is always called when a view controller is created.

The question I have, then: if viewDidUnload is not called when a VC is being 
released, is it guaranteed that it will never be called when a VC is being 
released? I may need to do cleanup in -viewDidUnload that can't be done twice 
(for example, removing a KVO).

I'm observing this behavior in the simulator, iOS 4.3.

-- 
Rick

_______________________________________________

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/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to