helpshift / CocoaPods

CocoaPods specs for Helpshift SDK
1 stars 0 forks source link

IQKeyboardManager conflict #5

Closed jyounus closed 8 years ago

jyounus commented 8 years ago

Hey there,

I'm using "IQKeyboardManager" in my Xcode project to handle textfield keyboard related logic. I have a feeling it is causing an issue with the implementation used by the Helpshift SDK. The keyboard sometimes moves everything up too much, so that the nav bar ends up cutting off. Here's a screenshot when it cuts off: https://abload.de/img/simulatorscreenshot6jclr7j.png Here's a screenshot when it works fine: https://abload.de/img/simulatorscreenshot6j6kkh8.png

I can disable "IQKeyboardManager" in certain classes, however I need access to the appropriate ViewController class for that. Something like this: IQKeyboardManager.sharedManager().disableToolbarInViewControllerClass(MessageDetailVC.self)

Can you guys either expose the appropriate VC for me to ignore? If not, can you please implement some sort of logic during the initialisation to NOT use your implementation of moving the scrollview up/down when the keyboard is shown?

Something like this: HelpshiftCore.installForApiKey("xxx", domainName: "xxx", appID: "xxx", withOptions: ["manuallyManageKeyboard": true])

This would cause your SDK to disable any logic you guys have implemented for scrolling when the keyboard is shown. I can then leave "IQKeyboardManager" enabled like now to automatically handle it.

jyounus commented 8 years ago

There's a new version of IQKeyboardManager which I've just updated to and they have added a property called "enabledDistanceHandlingClasses". I can define my classes in there, which means it should ignore any classes used by external libs/SDKs.

This does seem to resolve the problem I was having with the nav bar cutting off sometimes. Will reopen this ticket if I can reproduce the issue again.