国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

ios - UIAlertController的Action事件反應(yīng)有點(diǎn)慢?
ringa_lee
ringa_lee 2017-05-17 10:04:26
0
1
1067

直接貼上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)
    }

navigationControllerpop感覺特別慢,點(diǎn)擊之後,感覺有個(gè)2秒的延遲才回到上層介面,微信的放棄修改支付密碼,點(diǎn)完之後界面立刻回來了,有沒有誰知道有什麼辦法?

ringa_lee
ringa_lee

ringa_lee

全部回覆(1)
僅有的幸福

我用你程式碼寫了一個(gè)demo,發(fā)現(xiàn)並沒有2秒的延遲。

說明你程式碼的問題不是這一塊內(nèi)容。

最新下載
更多>
網(wǎng)站特效
網(wǎng)站源碼
網(wǎng)站素材
前端模板