|
@@ -10,7 +10,7 @@
|
|
|
import Alamofire
|
|
|
import UIKit
|
|
|
import NXFramework_Swift
|
|
|
-class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
+public class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
// 侧滑拦截返回
|
|
|
var popGestureHandle: (() -> Void)?
|
|
|
var naviTitle: String? // 标题
|
|
@@ -35,7 +35,7 @@ class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
return manager
|
|
|
}()
|
|
|
|
|
|
- override func viewDidLoad() {
|
|
|
+ public override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
navigationController?.isNavigationBarHidden = true
|
|
|
view.backgroundColor = UIColor.black
|
|
@@ -122,17 +122,17 @@ class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
navigationController?.popViewController(animated: true)
|
|
|
}
|
|
|
|
|
|
- override func viewDidAppear(_ animated: Bool) {
|
|
|
+ public override func viewDidAppear(_ animated: Bool) {
|
|
|
super.viewDidAppear(animated)
|
|
|
|
|
|
}
|
|
|
|
|
|
- override func viewWillDisappear(_ animated: Bool) {
|
|
|
+ public override func viewWillDisappear(_ animated: Bool) {
|
|
|
super.viewWillDisappear(animated)
|
|
|
PQLoadingHUB.shared.dismissHUB()
|
|
|
}
|
|
|
|
|
|
- override func viewDidDisappear(_ animated: Bool) {
|
|
|
+ public override func viewDidDisappear(_ animated: Bool) {
|
|
|
super.viewDidDisappear(animated)
|
|
|
|
|
|
if view.viewWithTag(cGuideTag) != nil {
|
|
@@ -145,11 +145,11 @@ class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
PQLog(message: "\(String(describing: type(of: self)))被销毁")
|
|
|
}
|
|
|
|
|
|
- override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
|
+ public override var preferredStatusBarStyle: UIStatusBarStyle {
|
|
|
return .lightContent
|
|
|
}
|
|
|
|
|
|
- override var prefersStatusBarHidden: Bool {
|
|
|
+ public override var prefersStatusBarHidden: Bool {
|
|
|
return isHiddenStatus
|
|
|
}
|
|
|
|
|
@@ -170,7 +170,7 @@ class PQBaseViewController: UIViewController, UIGestureRecognizerDelegate {
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- func gestureRecognizer(_: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
|
|
|
+ public func gestureRecognizer(_: UIGestureRecognizer, shouldReceive touch: UITouch) -> Bool {
|
|
|
if touch.view is UISlider {
|
|
|
return false
|
|
|
}
|