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: Fri, 17 Jun 2011 09:16:31 -0700
On Jun 16, 2011, at 7:15 PM, G S wrote:
> The delegate for the UIWebView is set up in the XIB file; it's pretty
> hokey to have to intervene in code to then disassociate the view from
> its delegate. Also, there is no "dealloc method where you dispose of
> the UIWebView", because that's done automatically when the view is
> popped off the navigation stack.
What object is asking as the web view's delegate? Typically that object also has an owning reference to the web view, so you likely already have a -dealloc method that releases the web view – just also set the delegate of the web view at that point.
--
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