Search code examples
iosobjective-cxcodeiqkeyboardmanager

IQKeyboardManager for iOS 11 Xcode 9.2 Cannot build


I'm trying to integrate IQKeyboardManager in my application. Due to few existing constrains I can only drag and drop the library into my project. However when I try to compile the project I get the following errors. enter image description here

I'm using Objective-C and targeting iOS 11.0.

Please help me know what I'm missing here.

Thanks.


Solution

  • I tried "__weak IQKeyboardManager *weakSelf = self;" and "__strong IQKeyboardManager *strongSelf = weakSelf;"

    instead of "__weak typeof(self) weakSelf = self;" and "__strong typeof(self) strongSelf = weakSelf;"

    This cleared my issue.

    Can anyone please suggest why this was happening.