在目标c中,我可以说如下。
[self.promoTextField setKeyboardType:UIKeyboardTypeEmailAddress];
尝试这个 :
self.promoTextField.keyboardType = UIKeyboardType.EmailAddress