Why doesn't my Cordova/PhoneGap iOS app rotate when the device rotates?

前端 未结 4 1520
囚心锁ツ
囚心锁ツ 2020-11-30 09:36

I am trying to make a landscape only app, but I am not able to produce any rotation at all.

There used to be a autorotate setting in PhoneGap.plis

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-11-30 09:45

    I tried the JavaScript solution above and got no joy In Visual Studio 2015 I change the config.xml to

    
    

    taken from Cordova 5 build command is deleting iOS device orientation settings

    I didn't need the javascript just the config setting

提交回复
热议问题