gpt4 book ai didi

ios - UIKeyboardAppearance 损坏 : showing both styles at once

转载 作者:行者123 更新时间:2023-11-29 01:20:16 24 4
gpt4 key购买 nike

我有一个键盘外观设置为深色的 UITextView。但是,一旦我呈现然后关闭 UINavigationController,我就会得到这样的键盘:

enter image description here

现在我不确定该怎么做才能让它恢复正常?一旦我关闭键盘并再次显示它,它就会恢复正常,但这是 Not Acceptable 。

我假设这是一个 Apple 错误,但有人知道解决这个问题的方法吗?

谢谢!

最佳答案

好的,我想出了如何解决这个错误。在呈现 View Controller 之前,您只需关闭键盘即可。像这样:

[self.textView resignFirstResponder];

我不确定是什么原因导致了这个错误,但以防万一其他人也遇到这个问题,这就是我正在做的修复它。

关于ios - UIKeyboardAppearance 损坏 : showing both styles at once,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34699227/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com