我目前正在设计一个应该像原始iMessage应用程序一样的聊天应用程序。在应用程序中,我已经覆盖了我的ViewController
的inputAccessoryView,以将输入视图粘贴到键盘上。使用CMD + K
解除键盘时,一切正常,但在使用CollectionView
滚动自定义collectionView.keyboardDismissMode = .interactive
时关闭键盘
我在控制台上收到了一些有趣的警告;
2017-12-27 23:43:17.778123+0300 Linky[4750:7371056] API error: <_UIKBCompatInputView: 0x7fdc93a37c30; frame = (0 0; 0 0); layer = <CALayer: 0x608000c26340>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-12-27 23:43:17.778362+0300 Linky[4750:7371056] API error: <_UIKBCompatInputView: 0x7fdc93a37c30; frame = (0 0; 0 0); layer = <CALayer: 0x608000c26340>> returned 0 width, assuming UIViewNoIntrinsicMetric
2017-12-27 23:43:21.500850+0300 Linky[4750:7371056] [View] First responder warning: '<UITextField: 0x7fdc8e2a2e00; frame = (8 0; 287 50); text = ''; opaque = NO; gestureRecognizers = <NSArray: 0x60000065c7a0>; layer = <CALayer: 0x600000637500>>' rejected resignFirstResponder when being removed from hierarchy
2017-12-27 23:43:21.514121+0300 Linky[4750:7371056] -[UIWindow endDisablingInterfaceAutorotationAnimated:] called on <UITextEffectsWindow: 0x7fdc8a158a00; frame = (0 0; 375 667); opaque = NO; autoresize = W+H; layer = <UIWindowLayer: 0x60400062d580>> without matching -beginDisablingInterfaceAutorotation. Ignoring.
有人可以帮我弄清楚发生了什么事吗?
感谢。