Browse Source

1.支持单选

wenweiwei 3 năm trước cách đây
mục cha
commit
38adbc1643

+ 2 - 0
Example/BFRecordScreenKit/AppDelegate.swift

@@ -7,6 +7,7 @@
 //
 
 import UIKit
+import BFMaterialKit
 
 @UIApplicationMain
 class AppDelegate: UIResponder, UIApplicationDelegate {
@@ -16,6 +17,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
 
     func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
         // Override point for customization after application launch.
+        BFMaterialConfig.shared.choseType = .single
         if let tbc = self.window?.rootViewController as? UITabBarController {
             tbc.selectedIndex = 1
             tbc.tabBar.barTintColor = .black

+ 4 - 0
Example/BFRecordScreenKit/PhotoVideoListController.swift

@@ -75,4 +75,8 @@ class PhotoVideoListController: BFBaseViewController {
             cShowHUB(superView: nil, msg: "需要选择一个视频")
         }
     }
+    
+    override open var preferredStatusBarStyle: UIStatusBarStyle {
+            return .lightContent
+    }
 }