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

How to disable and enable keyboardControl like IQKeyboardManager ? #96

Open tariq235 opened 9 years ago

tariq235 commented 9 years ago

I am facing an issue while using DAKeyBoardControler with Intercom ios sdk. https://github.com/intercom/intercom-ios/issues/80

Their iOS team told me, "We have NSNotifications for when Intercom opens and closes. Anything in the app that customises text field or keyboard behaviour can cause problem like this."

How should I disable the DAKeyboardControl when interacting to Intercom sdk ?

jtreanor commented 9 years ago

This could be solved in a few ways:

  1. Allow whitelisting of UIViews to be affected by the swizzle. For complex apps it is not unusual to want DAKeyboardControl's features in one place but not another.
  2. Add a method to disable DAKeyboardControl temporarily. This would allow certain sections of the app to be untouched by the swizzle.