您的位置:首页 > 其它

How to hide keyboard when you click backgroud in a TTTableView?

2012-02-15 14:05 465 查看
1. set tableview delegate with yourself(TTTableViewController<TTTableViewDelegate>).

self.tableView.delegate = self;

2. implement touchesBegan

- (void)tableView:(UITableView*)tableView touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event

{

NSLog(@"touchesBegan");

[yourTextField resignFirstResponder];//or any control need to hide keyboard

}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐