0

1 https://forums.developer.apple.com/thread/79400

自 iOS 11.0 起,顶部/底部布局指南已弃用,因此您必须向 IQLayoutGuideConstraint 提供安全区域。关闭键盘时,会在该部分留下黑屏(请参阅图片)。

我尝试使用 CocoaPods pod 'IQKeyboardManager' 和 pod 'IQKeyboardManagerSwift' ~ 5.0.0。

在此处输入图像描述

4

1 回答 1

0

利用

pod 'IQKeyboardManagerSwift', '4.0.7'

我正在使用 Swift 4 和 Xcode 9.2。它的工作正常。

于 2018-01-03T11:27:19.497 回答