Commit c07b421c authored by yqz's avatar yqz

设置闪屏优化

parent 6d2e9992
......@@ -154,7 +154,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
switch detailModel.title {
case settingLabels.Email.rawValue:
emailLoginSignOut()
emailLoginSignOut(indexPath)
break
case settingLabels.UsePIN.rawValue:
......@@ -309,7 +309,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
}
// MARK: - 邮件
private func emailLoginSignOut() -> Void {
private func emailLoginSignOut(_ indexPath:IndexPath) -> Void {
if PMEmailManager.shareManager.loginUser != nil {
self.view.showBlur()
let alert = EmailContentDelAlert(state: .emailSignOut)
......@@ -319,7 +319,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
PMEmailManager.shareManager.signOut {[weak self] success in
if success {
EmailFilterManager.share.signOut()
self?.tableView.reloadRows(at: [IndexPath(row: 0, section:1)], with: .none)
self?.tableView.reloadRows(at: [indexPath], with: .none)
}
}
}
......@@ -332,7 +332,7 @@ class SettingViewController : BaseViewController , UITableViewDelegate, UITableV
vc.state = .home
self.navigationController?.pushViewController(vc, animated: true)
vc.callblock = {[weak self] in
self?.tableView.reloadRows(at: [IndexPath(row: 0, section:1)], with: .none)
self?.tableView.reloadRows(at: [indexPath], with: .none)
}
}
if AdvManager.shared.advTimeAfterInAPP <= 0{
......
......@@ -56,12 +56,13 @@ class EmailLoginController: BaseViewController {
var navigation = self.navigationController?.viewControllers
if navigation?.count ?? 0 > 1 {
navigation![navigation!.count-1] = gourp
if self.callblock != nil {
self.callblock!()
}
self.navigationController?.setViewControllers(navigation ?? [], animated: true)
}
}else{
if self.callblock != nil {
self.callblock!()
}
self.navigationController?.popViewController(animated: true)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment