Re: viewWillDisappear not being called
Re: viewWillDisappear not being called
- Subject: Re: viewWillDisappear not being called
- From: Alex Kac <email@hidden>
- Date: Mon, 25 Apr 2011 22:04:25 -0500
The view is not being hidden - the whole app is. viewWillDisappear is called when within the life-cycle of a view, its actually about to get removed from the visible hierarchy.
There are two life-cycles you are mixing up: app lifecycle and view controller life cycle. The two do not mix.
On Apr 25, 2011, at 9:59 PM, Jeffrey Walton wrote:
> Hi All,
>
> According to the documentation in the headers:
>
> // UIViewController.h
> // Called when the view is dismissed, covered or otherwise hidden.
> - (void)viewWillDisappear:(BOOL)animated;
>
> And Apple's documentation [1]:
>
> Notifies the view controller that its view is about to be dismissed,
> covered, or otherwise hidden from view.
>
> I'm not sure if I should be surprised or not, but viewWillDisappear
> does not appear to be called despite what the documentation claims.
>
> The view is part of a custom view controller (built with IB - nothing
> fancy) and presented modally. To duplicate, show a view modally and
> press the home button.
Alex Kac - President and Founder
Web Information Solutions, Inc.
“Don't forget until too late that the business of life is not business but living.”
-- B.C. Forbes,
_______________________________________________
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