• 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
Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?


  • Subject: Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
  • From: David Duncan <email@hidden>
  • Date: Mon, 20 Jun 2011 09:56:12 -0700

On Jun 20, 2011, at 8:21 AM, Jeff Kelley wrote:

> If you’re creating the web view in -viewDidLoad, you should probably release
> it and nil the pointer to it in -viewDidUnload, not -dealloc.


You need to do both. You aren't guaranteed that your -viewDidUnload method will ever be called, so if you don't do it in -dealloc also, you can still have a case where you get a delegate callback, but have an incomplete UI (depending on what you are doing it may not crash, but you would then not see the results either).
--
David Duncan

_______________________________________________

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

References: 
 >Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack? (From: Matt Neuburg <email@hidden>)
 >Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack? (From: Jeff Kelley <email@hidden>)

  • Prev by Date: Re: CATransactions having no effect in CALayer draw delegate
  • Next by Date: Re: If No Memory Leaks, Is It Good Enough for Memory Management?
  • Previous by thread: Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
  • Next by thread: Re: So... we can't use UIWebView (with a delegate) on a page that's pushed onto a UINavigationController stack?
  • Index(es):
    • Date
    • Thread