开发者

Render UIWebView in Background

I am using an UIWebView which loads an local index.html. The index.html uses jqTouch and mimics a native iOS interface.

The problem is when the user accesses this WebView for the first time it takes about 1-2 seconds to render the page with its heavy JavaScript (jQTouch) and CSS Stuff. 开发者_JS百科

This doesn't look very nice and irritates. This happens only on the first time of loading it.

Can I somehow render the WebView during the startup of the App or do you have any other ideas?


I'm not 100% sure if this would work, but you can place a UIView with some sort of progress bar on top of the UIWebView, then when it's done loading remove the UIView.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜