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