标签:com blog class div code log c t sp tab ble
之前一直是讲view的父类改成control,然后加一个全屏按钮,点击让键盘消失。这个方法要写好多代码,现在一个比较好的方法是重写一个下面的方法:
1
2
3
4 |
- ( void )touchesBegan:( NSSet
*)touches withEvent:(UIEvent *)event { [ self .view endEditing: YES ]; } |
标签:com blog class div code log c t sp tab ble
原文地址:http://www.cnblogs.com/robinsons/p/3695756.html