Explorar o código

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

Marino Faggiana %!s(int64=7) %!d(string=hai) anos
pai
achega
faa40ac05e
Modificáronse 1 ficheiros con 1 adicións e 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"];