Explorar el Código

network login controller: fix navigation on iPad

Felix Paul Kühne hace 10 años
padre
commit
94c7e06d13
Se han modificado 1 ficheros con 4 adiciones y 1 borrados
  1. 4 1
      Sources/VLCNetworkLoginViewController.m

+ 4 - 1
Sources/VLCNetworkLoginViewController.m

@@ -153,7 +153,10 @@
                 return;
             }
 
-            [self.navigationController popViewControllerAnimated:YES];
+            if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone)
+                [self.navigationController popViewControllerAnimated:YES];
+            else
+                [self dismissViewControllerAnimated:YES completion:nil];
             [self.delegate loginToServer:self.serverField.text
                                     port:self.portField.text
                                 protocol:protocol