SenchaTouch Lock screen so it does not go into Landscape?
Can someone poi开发者_运维百科nt me to how this is done with SenchaTouch?
Thanks
If this is on an iOS device you cannot lock the orientation in Safari mobile.
If you are installing it as a web view/hybrid/native app (say with PhoneGap), you can lock the orientation.
if(Ext.os.is.Android || Ext.os.is.iOS ){
navigator.screenOrientation.set('portrait');
}
Using Phonegap u can do this.
精彩评论