uni-app icon indicating copy to clipboard operation
uni-app copied to clipboard

IOS正式包强制横屏不生效

Open qq1255198035 opened this issue 6 years ago • 1 comments

IOS正式包强制横屏不生效plus.screen.lockOrientation('landscape-primary'); 本地真机测试生效

qq1255198035 avatar Jun 04 '20 10:06 qq1255198035

plus.screen.lockOrientation仅锁定屏幕方向

hbuilder基座默认支持所有方向,打包时需要配置支持的屏幕方向 pages.json -> globalStyle -> "pageOrientation": "portrait"//横屏配置,全局屏幕旋转设置(仅 APP/微信/QQ小程序),支持 auto / portrait / landscape

参考文档 https://uniapp.dcloud.net.cn/collocation/pages?id=globalstyle

hdx-w avatar Jun 18 '20 10:06 hdx-w