xcode4.3 完成输入后 点击背景关闭键盘

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ 
[self.view endEditing:YES];
}


把这个复制到视图对应的.m文件中,即可

posted @ 2014-06-02 15:59  csshaw  阅读(192)  评论(0编辑  收藏  举报