viewWillDisappear not being called
viewWillDisappear not being called
- Subject: viewWillDisappear not being called
- From: Anthony Smith <email@hidden>
- Date: Tue, 13 Oct 2009 13:50:59 -0400
When switching my views I'm noticing that my view controllers
viewWillDisappear method is not being called. When switching the view
I call this explicitly so I'm kind of confused. Here's my view
switching code:
- (void)switchView:(UIViewController *)newViewController {
[newViewController viewWillAppear:YES];
[currentViewController viewWillDisappear:YES];
[[currentViewController view] removeFromSuperview];
[[self view] insertSubview:[newViewController view] atIndex:0];
[currentViewController viewDidDisappear:YES];
[newViewController viewDidAppear:YES];
[self setCurrentViewController:newViewController];
}
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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