|
@@ -78,7 +78,16 @@ class MVHomeController: MVBaseController {
|
|
|
var mAllVideos: Array = Array<PQVideoListModel>.init()
|
|
|
|
|
|
var lastBnnerSelectIndex: IndexPath = IndexPath()
|
|
|
+
|
|
|
+ deinit {
|
|
|
+ PQNotification.removeObserver(self)
|
|
|
+ }
|
|
|
+ //登录成功后自动跳转到系统相册
|
|
|
+ @objc func loginSuccesss() {
|
|
|
+
|
|
|
+ navigationController?.pushViewController(PQStuckPointMaterialController(), animated: true)
|
|
|
|
|
|
+ }
|
|
|
override func viewWillDisappear(_ animated: Bool) {
|
|
|
super.viewWillDisappear(animated)
|
|
|
|
|
@@ -121,6 +130,9 @@ class MVHomeController: MVBaseController {
|
|
|
|
|
|
override func viewDidLoad() {
|
|
|
super.viewDidLoad()
|
|
|
+
|
|
|
+ addNotification(self, selector: #selector(loginSuccesss), name: cLoginSuccesssNotiKey, object: nil)
|
|
|
+
|
|
|
// view.addSubview(mineBtn)
|
|
|
view.addSubview(stuckPointBtn)
|
|
|
view.addSubview(settingBtn)
|