触摸背景关闭软键盘

// 触摸背景关闭软键盘
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{
    [super touchesBegan:touches withEvent:event];
    [self.view endEditing:YES];
}

 

posted @ 2014-03-28 16:05  菜鸟程序猿  阅读(142)  评论(0编辑  收藏  举报