mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2026-05-31 00:00:04 +08:00
Merge pull request #89 from brenodouglas/master
Fix for cordova >= 3.6.3
This commit is contained in:
@@ -23,7 +23,6 @@ SOFTWARE.
|
||||
*/
|
||||
|
||||
#import <Cordova/CDVPlugin.h>
|
||||
#import <Cordova/CDVShared.h>
|
||||
|
||||
@interface YoikScreenOrientation : CDVPlugin
|
||||
|
||||
|
||||
@@ -95,7 +95,7 @@ SOFTWARE.
|
||||
|
||||
@implementation ForcedViewController
|
||||
|
||||
- (NSUInteger) supportedInterfaceOrientations
|
||||
- (UIInterfaceOrientationMask) supportedInterfaceOrientations
|
||||
{
|
||||
if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {
|
||||
return UIInterfaceOrientationMaskPortrait;
|
||||
|
||||
Reference in New Issue
Block a user