![](/img/trans.png)
[英]Ionic cordova-plugin-screen-orientation doesn't work anymore on Ios
[英]cordova-plugin-screen-orientation is not working with webview plugin in ios
我正在使用插件cordova-plugin-screen-orientation鎖定屏幕方向。 但是由於cordova-plugin-wkwebview插件而無法使用。 我正在使用phonegap構建進行構建。
我對此問題進行了很多研究,但找不到任何解決方案。
我將不勝感激。
謝謝
在config.xml
使用以下值:
<preference name="Orientation" value='portrait'></preference>
此值將鎖定首選項。 您還可以使用landscape
或portrait
作為值
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.