Просмотр исходного кода

disable return key if no text is input

Jonas Reinsch 7 лет назад
Родитель
Сommit
ff28c53fe5
1 измененных файлов с 2 добавлено и 0 удалено
  1. 2 0
      deltachat-ios/CredentialsController.swift

+ 2 - 0
deltachat-ios/CredentialsController.swift

@@ -31,6 +31,8 @@ class TextFieldCell:UITableViewCell {
         textField.placeholder = placeholder
         
         selectionStyle = .none
+        
+        textField.enablesReturnKeyAutomatically = true
     }