ios - how to make cordova webview auto orientation -
i have extended cordovawebview in ios , custom view doesn't rotate automatically based on device orientation. want ask how can custom webview responded device orientation.
if developing ios app webview can set webview autoresizing mask as
//autoresizemask webview.autoresizingmask = uiviewautoresizingflexiblewidth|uiviewautoresizingflexibleheight;
or if developing phonegap application ios or android, need modify .plist file in ios , manifest file android. on iphone add -info.plist:
<dict> <array> <string>uiinterfaceorientationportrait</string> <string>other orientations like</string> </array> </dict>
on android androidmanifest.xml
check link
Comments
Post a Comment