简体   繁体   中英

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. 在此处输入图片说明

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

Please help me know what I'm missing here.

Thanks.

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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM