I had the same issue. What I did was to have a UIImageView on top of the UIWebView. The UIImageView has a full screen graphic that has a nice background and text introducing the app and saying "Please wait" or something like that. Then I listen for the webViewDidFinishLoad event and in there I make the image view invisible and he web view visible.
Also, our app was rejected from the app store initially because it was just loading our webapp immediately and not checking for the presence of a network connection. So make sure you first see if the network is available and if it is not you'll need to prompt the user accordingly. Look at the Reachability sample class for code on checking network availability. I realize this is somewhat off topic for the list except that what we're really trying to do is continue with webapp development, just within the UIWebView container instead of MobileSafari. So hopefully not too off-topic. :) David On Oct 6, 5:50 am, Michael Kaye <[EMAIL PROTECTED]> wrote: > Actually this forum is for iPhone Web Development...saying that try > using the viewWillLoad (not viewDidLoad) method or set the background > colour of the UIWebView in Interface Builder. You may need set the > background colour of the parent view and not just the UIWebView. > > M. > > On 6 Oct 2008, at 05:44, Igor Faletski wrote: > > > > > Hey everyone, > > > Really new to the SDK and Objective C in general - trying to port an > > existing iPhone web app into a native version. > > > One really annoying behavior I've noticed is the entire screen going > > white for a second before the web app starts to load. This is quite > > distracting for the user. > > > Changing the WebView.backgroundColor like this > > > webView.backgroundColor = [UIColor clearColor]; > > > Only changes the background *after* the page is loaded. > > > Is there some sort of constructor argument I should be using? Any > > comments are highly appreciated. > > > Thanks, > > > Igor --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "iPhoneWebDev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/iphonewebdev?hl=en -~----------~----~----~----~------~----~------~--~---
