Explorar el Código

make sure text field becomes first responder if cell is selected

Jonas Reinsch hace 7 años
padre
commit
34b79d2098
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      deltachat-ios/CredentialsController.swift

+ 5 - 1
deltachat-ios/CredentialsController.swift

@@ -27,7 +27,11 @@ class TextFieldCell2:UITableViewCell {
         selectionStyle = .none
     }
     
-    
+    override func setSelected(_ selected: Bool, animated: Bool) {
+        if selected {
+            textField.becomeFirstResponder()
+        }
+    }
     
     required init?(coder aDecoder: NSCoder) {
         fatalError("init(coder:) has not been implemented")