点击空白处键盘hide


UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc]
initWithTarget:self
action:@selector(dismissKeyboard)];

[self.view addGestureRecognizer:tap];
}

 

 

 

-(void)dismissKeyboard {
[Global cancelKeyBoard:self.view];
}

posted @ 2013-05-22 11:46  StevenFu  阅读(120)  评论(0编辑  收藏  举报