IQKeyboardManager for iOS 11 Xcode 9.2无法构建

时间:2018-03-27 11:24:16

标签: ios objective-c xcode iqkeyboardmanager

我试图在我的应用程序中集成IQKeyboardManager。由于现有约束很少,我只能将库拖放到我的项目中。但是,当我尝试编译项目时,我收到以下错误。 enter image description here

我使用Objective-C并定位iOS 11.0。

请帮助我知道我在这里失踪了什么。

感谢。

1 个答案:

答案 0 :(得分:0)

我试过" __weak IQKeyboardManager *weakSelf = self;"和" __strong IQKeyboardManager *strongSelf = weakSelf;"

代替" __weak typeof(self) weakSelf = self;"和" __strong typeof(self) strongSelf = weakSelf;"

这解决了我的问题。

任何人都可以建议为什么会这样。