Search code examples
iphoneobjective-ciosios5

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?


Solution

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