Merge pull request #89 from brenodouglas/master

Fix for cordova >= 3.6.3
This commit is contained in:
Grant Benvenuti 2016-02-12 10:22:59 +10:00
commit 8790cb2f86
2 changed files with 1 additions and 2 deletions

View File

@ -23,7 +23,6 @@ SOFTWARE.
*/ */
#import <Cordova/CDVPlugin.h> #import <Cordova/CDVPlugin.h>
#import <Cordova/CDVShared.h>
@interface YoikScreenOrientation : CDVPlugin @interface YoikScreenOrientation : CDVPlugin

View File

@ -95,7 +95,7 @@ SOFTWARE.
@implementation ForcedViewController @implementation ForcedViewController
- (NSUInteger) supportedInterfaceOrientations - (UIInterfaceOrientationMask) supportedInterfaceOrientations
{ {
if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) { if ([self.calledWith rangeOfString:@"portrait"].location != NSNotFound) {
return UIInterfaceOrientationMaskPortrait; return UIInterfaceOrientationMaskPortrait;