Explorar el Código

switch portrait/landscape UI setup, always fallback to portrait

cyberta hace 6 años
padre
commit
a07a873a33
Se han modificado 1 ficheros con 4 adiciones y 3 borrados
  1. 4 3
      deltachat-ios/Controller/NewProfileViewController.swift

+ 4 - 3
deltachat-ios/Controller/NewProfileViewController.swift

@@ -71,11 +71,12 @@ class NewProfileViewController: UIViewController, QrCodeReaderDelegate {
 
 
         initViews()
         initViews()
 
 
-        if UIDevice.current.orientation.isPortrait {
-            setupPortraitConstraints()
-        } else {
+        if UIDevice.current.orientation.isLandscape {
             setupLandscapeConstraints()
             setupLandscapeConstraints()
+        } else {
+            setupPortraitConstraints()
         }
         }
+
     }
     }
 
 
     private func initViews() {
     private func initViews() {