danielamitay / DAKeyboardControl

DAKeyboardControl adds keyboard awareness and scrolling dismissal (ala iMessages app) to any view with only 1 line of code.
Other
1.58k stars 214 forks source link

DAKeyboadHandler responds NO to gestureRecognizer:shouldReceiveTouch: when a UITextView is the first responder #65

Open brad-goss opened 10 years ago

brad-goss commented 10 years ago

I have a UITextView inside a UITableView. I've replaced the following line in two projects now, figured it's a noteworthy change. .

DAKeyboardControl.m:320 gestureRecognizer:shouldReceiveTouch:

return (![touch.view isFirstResponder] || ([self isKindOfClass:[UITextView class]] && [self isEqual:touch.view]));

replaced with

return (![touch.view isFirstResponder] || ([touch.view isKindOfClass:[UITextView class]]));

hectorstudio commented 10 years ago

I've experienced the same issue. I don't have a UITextView inside a UITableview but outside the UITableView, the thing is,it works fine at first, but after some swipe to UITableView this thing happends which prevents the panning gesture and it results UITextView locked in the place.

Also keyboard freezing issue happends when I go back and forth to the View controller that has DAKeyboardControl several times.