启用键盘拆分模式后,我在使用IQKeyboardManager时遇到了一个奇怪的问题。
键盘的背景不透明:
但是当不使用 IQKeyboardManager 时,键盘的背景是透明的:
编辑如何重现:
//AppDelegate.swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
...
IQKeyboardManager.shared.enable = true
...
}
//ViewController.swift
override func viewDidLoad() {
...
textField.keyboardDistanceFromTextField = 140 // or any constant
...
}
有什么建议吗?谢谢!