UIWebView rotation on iPad

后端 未结 2 390
猫巷女王i
猫巷女王i 2021-02-07 14:57

On the iPad, I present a view in the \"detail\" side of a split view controller that is basically just a UIWebView, which loads an HTML file in the application bund

2条回答
  •  北海茫月
    2021-02-07 15:54

    Just solved my issue with this by adding this HTML5 Viewport meta tag:

    
    

    to the head section of my HTML, maybe a variation of this meta tag may help?

    Although my issue was triggered when my app was started in landscape mode, while yours in portrait mode, it may be a common cause.

    I also had another funny issue with the webView in iPad and the common solution seems to be that meta tag:

    iPad Simulator WebView/Google Maps API Issue

提交回复
热议问题