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

前端 未结 13 1107
独厮守ぢ
独厮守ぢ 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:37

    Are you performing this as part of a segue? If you are, there is no need to push a VC onto your Navigation Controller because the segue will do it already. That is why your error is occurring - you are pushing a VC that is already on the stack of the NavController.

提交回复
热议问题