Re: How to delay display of UIWebView until view is loaded?
Re: How to delay display of UIWebView until view is loaded?
- Subject: Re: How to delay display of UIWebView until view is loaded?
- From: Laurent Daudelin <email@hidden>
- Date: Wed, 15 Dec 2010 15:15:22 -0800
I had a similar problem like this. The way I worked around it is in the controller that create the webview controller and load the nib file as in:
webViewController = [[WebViewController alloc] initWithNibName:@"WebView" bundle:NULL];
I do just this:
[webViewController view];
That forces the nib loading to occur.
HTH!
-Laurent.
--
Laurent Daudelin
AIM/iChat/Skype:LaurentDaudelin http://www.nemesys-soft.com/
Logiciels Nemesys Software email@hidden
On Dec 15, 2010, at 14:51, Eagle Offshore wrote:
> I've got a simple app that uses a navigation controller and a series of UIWebViews to handle the UI. When I want to load a new view controller that just has a web view as the entire view, allocate it, init it with the request it is supposed to display, and then push it onto the navigation controller.
>
> The problem is that the navigation controller then displays the webview controller before the web view has finished loading so it looks jumpy.
>
> It seems under ios that nib loading is deferred - no nib elements are available during init even if I call loadNibNamed..... The nib loading doesn't happen until the view controller is displayed.
>
> How can I force nib loading so I can get the webview initialized before pushing it onto the navigation controller (presumably from webViewDidLoad: delegate method)?
_______________________________________________
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