How to delay display of UIWebView until view is loaded?
How to delay display of UIWebView until view is loaded?
- Subject: How to delay display of UIWebView until view is loaded?
- From: Eagle Offshore <email@hidden>
- Date: Wed, 15 Dec 2010 14:51:15 -0800
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