瀏覽代碼

fix : Pushing the same view controller instance more than once is not supported

Marino Faggiana 7 年之前
父節點
當前提交
faa40ac05e
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      iOSClient/Main/CCMain.m

+ 1 - 1
iOSClient/Main/CCMain.m

@@ -5772,7 +5772,7 @@
     
         CCMain *viewController = [app.listMainVC objectForKey:serverUrlPush];
         
-        if (viewController.isViewLoaded == false || viewController == nil) {
+        if (!viewController) {
             
             viewController = [[UIStoryboard storyboardWithName:@"Main" bundle:nil] instantiateViewControllerWithIdentifier:@"CCMainVC"];