Browse Source

录制编辑界面添加常亮,和非常亮代码

jsonwang 3 năm trước cách đây
mục cha
commit
4121633b08

+ 2 - 0
BFRecordScreenKit/Classes/RecordScreen/Controller/BFRecordScreenController.swift

@@ -586,6 +586,7 @@ public class BFRecordScreenController: BFBaseViewController {
         super.viewWillAppear(animated)
         navigationController?.isNavigationBarHidden = true
         hiddenNavigation()
+        UIApplication.shared.isIdleTimerDisabled = true
     }
     
     public override func viewDidAppear(_ animated: Bool) {
@@ -599,6 +600,7 @@ public class BFRecordScreenController: BFBaseViewController {
         super.viewWillDisappear(animated)
         UIApplication.shared.keyWindow?.isUserInteractionEnabled = true
         pause()
+        UIApplication.shared.isIdleTimerDisabled = false
     }
 
     override public func viewDidLoad() {