I am working on a project based on phonegap iOS. And we load web site pages and local html pages in the same webview
. When load some page ,the view will be portrait ,and some of these pages are landscape,the others will support both landscape and portrait .Now when I try :
[UIDevice currentDevice] setOrientation: UIDeviceOrientationPortrait];
An error occured : No visible @interface for 'UIDevice' declares the selector 'setOrientation:'
Is this about the version of sdk or something else ? I saw other people can use it and just get a waring on the stackoverflow.
Sorry for my english.