| | |
| | | override func viewDidLoad() { |
| | | super.viewDidLoad() |
| | | |
| | | yy_popBlock = {[weak self] () in |
| | | self?.backAction() |
| | | } |
| | | |
| | | label_coin.text = "恭喜你,已完成全部答题!获得\(totalCoin)积分!" |
| | | label_correctNum.text = "\(correctNum)次" |
| | | label_errorNum.text = "\(errorNum)次" |
| | |
| | | } |
| | | |
| | | @IBAction func backHomeAction(_ sender: UIButton) { |
| | | for vc in navigationController?.viewControllers ?? []{ |
| | | if vc.isKind(of: HomeListenMenuVC.self){ |
| | | navigationController?.popToViewController(vc, animated: true);break |
| | | } |
| | | |
| | | if vc.isKind(of: HomeListenVC.self){ |
| | | navigationController?.popToViewController(vc, animated: true);break |
| | | } |
| | | } |
| | | backAction() |
| | | } |
| | | |
| | | @IBAction func nextAction(_ sender: UIButton) { |
| | |
| | | NotificationCenter.default.post(name: StudyCompleteNextLession_Noti, object: nextType) |
| | | } |
| | | } |
| | | |
| | | private func backAction(){ |
| | | for vc in navigationController?.viewControllers ?? []{ |
| | | if vc.isKind(of: HomeListenMenuVC.self){ |
| | | navigationController?.popToViewController(vc, animated: true);break |
| | | } |
| | | |
| | | if vc.isKind(of: HomeListenVC.self){ |
| | | navigationController?.popToViewController(vc, animated: true);break |
| | | } |
| | | } |
| | | } |
| | | } |