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.
我们在键盘出现之前使用约束来调整视图。在 UIKeyboardWillShowNotification 通知上进行调整。
问题是当用户切换到“听写”键盘时,键盘会出现并立即消失。问题似乎是约束调整的结果(self.gapViewConstraint.constant = height),并且只发生在 iOS8 上(iOS8 中添加了 as-you-speak 文本识别)。
任何想法如何在不消除约束的情况下解决?