直接貼上Button的點(diǎn)擊事件:
func cancelButton() {
let alertCtrl = UIAlertController.init(title: "是否放棄修改支付密碼?", message: nil, preferredStyle: UIAlertControllerStyle.alert)
alertCtrl.addAction(UIAlertAction.init(title: "否", style: UIAlertActionStyle.cancel, handler: nil))
alertCtrl.addAction(UIAlertAction.init(title: "是", style: UIAlertActionStyle.default, handler: { (action: UIAlertAction) in
self.navigationController?.popViewController(animated: true)
}))
self.present(alertCtrl, animated: true, completion: nil)
}
navigationController
的pop
感覺特別慢,點(diǎn)擊是
之後,感覺有個(gè)2秒的延遲才回到上層介面,微信的放棄修改支付密碼,點(diǎn)完之後界面立刻回來了,有沒有誰知道有什麼辦法?
ringa_lee
我用你程式碼寫了一個(gè)demo,發(fā)現(xiàn)並沒有2秒的延遲。
說明你程式碼的問題不是這一塊內(nèi)容。