• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
viewWillDisappear not being called
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: Re: Adding 'Help' to your App.
  • Next by Date: Re: Bindings Driving Me CRAZY. :'(
  • Previous by thread: Re: Returning to app after phone call
  • Next by thread: [MEET] Chicago CocoaHeads / CAWUG Tuesday October 13th
  • Index(es):
    • Date
    • Thread