Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试将 IQKeyboardManager 集成到我的应用程序中。由于现有约束很少,我只能将库拖放到我的项目中。但是,当我尝试编译项目时,出现以下错误。
我正在使用 Objective-C 并针对 iOS 11.0。
请帮助我知道我在这里缺少什么。
谢谢。
我试过“ __weak IQKeyboardManager *weakSelf = self;”和“ __strong IQKeyboardManager *strongSelf = weakSelf;”
__weak IQKeyboardManager *weakSelf = self;
__strong IQKeyboardManager *strongSelf = weakSelf;
而不是“ __weak typeof(self) weakSelf = self;”和“ __strong typeof(self) strongSelf = weakSelf;”
__weak typeof(self) weakSelf = self;
__strong typeof(self) strongSelf = weakSelf;
这清除了我的问题。
任何人都可以请建议为什么会这样。