How do I dismiss the iOS keyboard?

后端 未结 16 1077
情书的邮戳
情书的邮戳 2020-11-29 20:00

I have a UITextfield that i\'d like to dismiss the keyboard for. I can\'t seem to make the keyboard go away no matter what code i use.

16条回答
  •  野趣味
    野趣味 (楼主)
    2020-11-29 20:07

    -(void)textFieldDidBeginEditing:(UITextField *)textField
    {
        // your code
    
        [textField reloadInputViews];
    }
    

提交回复
热议问题