When building applications with Phonegap, android doesn’t seem to mind changing pages, but on iOS if you are missing a few key lines of code, when loading new pages you will get a white screen flicker before the new page loads. This issue is caused by Jquery Mobile and can be solved by adding the following meta tags inside your head: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> <meta name="apple-mobile-web-app-capable" content="yes" /> <meta name="apple-mobile-web-app-status-bar-style" content="black" /> |
|
来自: 飞鹰飞龙飞天 > 《Phonegap》