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

Fix multiple recognizers being added to view #43

Closed ahti closed 11 years ago

ahti commented 11 years ago

When the user switches directly from one text field to another, it is possible that inputKeyboardWillShow and inputKeyboardDidShow are called without inputKeyboardWillHide and inputKeyboardDidHide called in between.

This caused DAKeyboardControl to add multiple gesture recognizers to the view, loosing references to any but the last. That led to eg. UIScrollViews not working properly after dismissal of the Keyboard.

This pull request fixes that issue.

danielamitay commented 11 years ago

Ah yeah, thanks for the fix!