How to hide keyboard when you click backgroud in a TTTableView?
来源:互联网 发布:站长交易源码 编辑:程序博客网 时间:2024/05/19 19:33
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
}
- How to hide keyboard when you click backgroud in a TTTableView?
- how to set backgroud of keyboard
- Hide or remove keyboard When Click UITextField(UITextView)
- Shows you how to add tabs and how to register a click tab listener.
- How to call a service function in AngularJS ng-click
- Angular JS: How/when to use ng-click to call a route?
- SD-How to get delivery plant when you use va01 to create a new order
- How to hide/show tab bar of a view with a navigation bar in iOS?
- How to register a keyboard shortcut (hot key) in a .NET Windows Forms Application
- How to allow a user to click on TextBlocks which return an integer ID in the click handler
- HOW TO: Find the Problem Exception Stack When You Receive an UnhandledExceptionFilter Call in the St
- HOW TO: Find the Problem Exception Stack When You Receive an UnhandledExceptionFilter Call in the St
- How to make UITextField move up when keyboard is present
- How to achieve Long click in Uiautomator
- How to develop social networks when you’re a start-up
- How to close (auto hide) WPF window after 10 sec using a timer in C#?
- How to programmatically click a WPF button
- How to make a custom keyboard in iOS 8 using Swift
- 把任意类型转成Boolean
- find_mid
- flex样式3
- (三)美国大公司强在什么地方
- 关于宏定义的自加与自减分析
- How to hide keyboard when you click backgroud in a TTTableView?
- flex样式4
- 美国的家底很强
- java浅拷贝/深拷贝
- java连接池
- spring基于url路径匹配用法经验介绍
- 《黑客与画家》 读书感想
- 静态变量与非静态变量的区别
- 判断变量是否存在,或者是否以某种类型存在