mirror of
https://github.com/apache/cordova-plugin-screen-orientation.git
synced 2025-05-05 01:32:59 +08:00
Merge pull request #89 from brenodouglas/master
Fix for cordova >= 3.6.3
This commit is contained in:
commit
8790cb2f86
@ -23,7 +23,6 @@ SOFTWARE.
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
#import <Cordova/CDVPlugin.h>
|
#import <Cordova/CDVPlugin.h>
|
||||||
#import <Cordova/CDVShared.h>
|
|
||||||
|
|
||||||
@interface YoikScreenOrientation : CDVPlugin
|
@interface YoikScreenOrientation : CDVPlugin
|
||||||
|
|
||||||
|
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user