Explorar el Código

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

Marino Faggiana hace 7 años
padre
commit
faa40ac05e
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  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"];