|
@@ -12,7 +12,7 @@
|
|
|
#import "ViewController.h"
|
|
|
#import "PDRCoreApp.h"
|
|
|
#import "PDRCoreAppManager.h"
|
|
|
-
|
|
|
+#import <ZFPlayer/ZFLandscapeRotationManager.h>
|
|
|
|
|
|
@interface AppDelegate()<PDRCoreDelegate>
|
|
|
@property (strong, nonatomic) ViewController *h5ViewContoller;
|
|
@@ -78,7 +78,14 @@
|
|
|
[PDRCore handleSysEvent:PDRCoreSysEventPeekQuickAction withObject:shortcutItem];
|
|
|
completionHandler(true);
|
|
|
}
|
|
|
-
|
|
|
+- (UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window {
|
|
|
+ ZFInterfaceOrientationMask orientationMask = [ZFLandscapeRotationManager supportedInterfaceOrientationsForWindow:window];
|
|
|
+ if (orientationMask != ZFInterfaceOrientationMaskUnknow) {
|
|
|
+ return (UIInterfaceOrientationMask)orientationMask;
|
|
|
+ }
|
|
|
+ /// 这里是非播放器VC支持的方向
|
|
|
+ return UIInterfaceOrientationMaskPortrait;
|
|
|
+}
|
|
|
- (void)applicationDidBecomeActive:(UIApplication *)application
|
|
|
{
|
|
|
[PDRCore handleSysEvent:PDRCoreSysEventBecomeActive withObject:nil];
|