Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

hide keyboard by dragging finger like sms app in iOS 5

I have a chat feature in my app and I am trying to hide the keyboard by dragging the finger downward just like how you can hide the keyboard in the sms app in IOS 5.

I have subclassed UITableView, however as soon as scrolling starts I no longer get calls to

- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event

I am wondering how I can get scrolling and find out where the finger is during scrolling so that if it starts to get close to the keyboard I can start to hide it.

I think this is a feature lots of people will want, any ideas on how to make it?

like image 748
odyth Avatar asked Dec 08 '11 07:12

odyth


1 Answers

DAKeyboardControl it an MIT Licensed code source for what you are looking for.

like image 78
Sergio Prado Avatar answered Oct 04 '22 17:10

Sergio Prado