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.
我在 ios 应用程序中使用 IQKeyboardManagerSwift。但我得到了键盘上方的空白。帮我删除不必要的区域(请看图片中的红色区域。
看起来您正在使用的视图已经控制了键盘的位置。
一个解决方案是在进入此视图之前禁用 IQKeyboardManager 并在离开视图时启用它,如下所示:
// to disable IQKeyboardManager IQKeyboardManager.sharedManager().enable = false // to enable it again IQKeyboardManager.sharedManager().enable = true