iOS 键盘收起的问题!
巴扎黑
巴扎黑 2017-04-17 15:39:39
0
4
605
巴扎黑
巴扎黑

reply all(4)
伊谢尔伦

[self.view endEditing:NO]; The parameter passed in by this method is whether it is mandatory. Under normal circumstances, it will work even if no is passed.

Peter_Zhu

What works is just resignFirstResponder

洪涛

QAQ Approval of the answer requires reputation, so let me reply first. Everyone above is correct

洪涛

Resign as the first responder of the current control
or
Turn off the editable state of the parent control

Choose one of the two to close the keyboard
If you write it all, it will be like fighting the landlord:
One person robbed the landlord, and the trump card was taken away. Will others come back if they don't take advantage of the situation?

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template