hello 1 mēnesi atpakaļ
vecāks
revīzija
8f8d594f53

+ 9 - 2
HBuilder-Hello/HBuilder-Hello/AppDelegate.m

@@ -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];

+ 2 - 0
WQPlayBallLiveQiu/WQPlayBallLiveQiu/Classes/LiveModule.m

@@ -102,6 +102,8 @@ UNI_EXPORT_METHOD(@selector(setupConfigCallback:))
         PBSDK.shared.accessToken = nil;
         PBSDK.shared.expiresTime = nil;
         PBSDK.shared.refreshToken = nil;
+        
+        NSLog( @"UINIapp 退出登录");
         [[NSUserDefaults standardUserDefaults] removeObjectForKey:@"token"];
         [[NSUserDefaults standardUserDefaults] synchronize];
         return;