“Pushing the same view controller instance more than once is not supported” exception

前端 未结 13 1037
独厮守ぢ
独厮守ぢ 2020-12-02 17:04

I am using the following code to retrieve some messages and putting them into my inbox.

MyInboxVC *inboxVC=[MyInboxVC get ];
//upload all the pending messag         


        
相关标签:
13条回答
  • 2020-12-02 17:41

    I fixed the same issue (Swift 4) with IB segue using :

    override func shouldPerformSegue(withIdentifier identifier: String, sender: Any?) -> Bool {
        return navigationController?.topViewController is MainController ? true : false 
    }
    
    0 讨论(0)
提交回复
热议问题