Selaa lähdekoodia

1.状态栏文字颜色适配

huangxiaodong 1 vuosi sitten
vanhempi
commit
dd2e82d207

+ 1 - 1
创维盒子/双子星云手机/Base/Controller/BaseViewController.m

@@ -43,7 +43,7 @@
 }
 
 - (UIStatusBarStyle)preferredStatusBarStyle {
-    return UIStatusBarStyleLightContent;
+    return UIStatusBarStyleDefault;
 }
 
 #pragma mark UI布局

+ 4 - 1
创维盒子/双子星云手机/CloudPlayer/PlayerViewController.mm

@@ -264,6 +264,8 @@ UITextFieldDelegate>
     [self recyclResource];
     AppDelegate *app = (AppDelegate *)[UIApplication sharedApplication].delegate;
 //    app.allowAutoRotate = NO;
+    
+    self.navigationController.navigationBar.barStyle = UIBarStyleDefault;
     [super viewWillDisappear:animated];
 }
  
@@ -332,7 +334,8 @@ UITextFieldDelegate>
 //    app.allowAutoRotate = YES;
     
     [[UIApplication sharedApplication] setStatusBarHidden:YES];
-
+    self.navigationController.navigationBar.barStyle = UIBarStyleBlack;
+    
     [self noEnablePanRightBack];
     
     [self.navigationController.view addSubview:mPlayerView.controlBtn];

+ 7 - 7
创维盒子/双子星云手机/Info.plist

@@ -64,22 +64,22 @@
 	</array>
 	<key>NSAppTransportSecurity</key>
 	<dict>
+		<key>NSAllowsArbitraryLoads</key>
+		<true/>
+		<key>NSAllowsArbitraryLoadsInWebContent</key>
+		<true/>
 		<key>NSExceptionDomains</key>
 		<dict>
 			<key>hiboxde.armclouding.com</key>
 			<dict>
-				<key>NSExceptionRequiresForwardSecrecy</key>
-				<false/>
 				<key>NSExceptionAllowsInsecureHTTPLoads</key>
 				<true/>
+				<key>NSExceptionRequiresForwardSecrecy</key>
+				<false/>
 				<key>NSIncludesSubdomains</key>
 				<true/>
 			</dict>
 		</dict>
-		<key>NSAllowsArbitraryLoads</key>
-		<true/>
-		<key>NSAllowsArbitraryLoadsInWebContent</key>
-		<true/>
 	</dict>
 	<key>UIApplicationSceneManifest</key>
 	<dict>
@@ -103,7 +103,7 @@
 		<string>audio</string>
 	</array>
 	<key>UIViewControllerBasedStatusBarAppearance</key>
-	<false/>
+	<true/>
 	<key>User Interface Style</key>
 	<string>Dark</string>
 </dict>