Search code examples
iphonecordovasencha-touchorientation-changes

sencha touch :: how to supress orientation change


In my sencha-tpuch / phonegap app on iOS I want my app not to change orientation with the device its used on. how could I suppress orientation change in sencha-touch or what would I override exactly? thnx!


Solution

  • You dont need to edit any code. All you need to do is go to your configuration files and specify orientations you want to support. By default all 4 orientations are supported, you have to edit it to support orientations you want. Rebuild the application and Go.

    The entry should be in one of the following files:

    phonegap.plist/application.plist/config.xml

    Also check this link.

    With only Sencha Touch, as it cannot force browser not to change orientation, it is NOT possible to remove orientation change. See this link.