瀏覽代碼

set no textContentType for email field in new contact (suggests the own email address)

Jonas Reinsch 7 年之前
父節點
當前提交
338295f9fe
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      deltachat-ios/CredentialsController.swift

+ 1 - 2
deltachat-ios/CredentialsController.swift

@@ -49,8 +49,6 @@ class TextFieldCell:UITableViewCell {
     static func makeEmailCell() -> TextFieldCell {
         let emailCell = TextFieldCell(description: "Email", placeholder: "you@example.com")
         
-        // this suggests the own email
-        emailCell.textField.textContentType = UITextContentType.emailAddress
         emailCell.textField.keyboardType = .emailAddress
         // switch off quicktype
         emailCell.textField.autocorrectionType = .no
@@ -114,6 +112,7 @@ class CredentialsController: UITableViewController {
         emailCell.textField.addTarget(self, action: #selector(CredentialsController.emailTextChanged), for: UIControlEvents.editingChanged)
         passwordCell.textField.addTarget(self, action: #selector(CredentialsController.passwordTextChanged), for: UIControlEvents.editingChanged)
         
+        emailCell.textField.textContentType = UITextContentType.emailAddress
         emailCell.textField.delegate = self
         passwordCell.textField.delegate = self
         emailCell.textField.returnKeyType = .next