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 protected])

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 [email protected]

Reply via email to