Setting the autoCorrectionType to UITextAutocorrectionTypeNo did the trick
Objective-C
textField.autocorrectionType = UITextAutocorrectionTypeYes;
textField.autocorrectionType = UITextAutocorrectionTypeNo;
Swift 2
textField.autocorrectionType = .Yes
textField.autocorrectionType = .No
Swift 3
textField.autocorrectionType = .yes
textField.autocorrectionType = .no
SwiftUI
textField.disableAutocorrection(true)
textField.disableAutocorrection(false)
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…