草庐IT

constraintBottomAttachmentView

全部标签

ios - 如何使用 AutoLayout 在 iphone x 中处理带有安全区域的键盘?

这个问题在这里已经有了答案:iPhoneXandiPhone8keyboardheightaredifferent(6个答案)关闭4年前。在iphonex中设置安全区域后。当键盘打开安全区域(键盘上方的白色区域)出现在键盘上方时,如何处理键盘?键盘上方的白色区域。处理键盘代码:-funckeyboardWillChangeFrameWithNotification(_notification:Notification,showsKeyboard:Bool){letuserInfo=notification.userInfo!letanimationDuration:TimeInterv