UITextView表情符号背景问题
我有一个启用了表情符号的 UITextView
扩展,当我切换到表情符号键盘时,表情符号具有白色背景。我尝试更新 UITextView 背景颜色,从扩展中删除了自定义属性,并且还使用了默认的 UITextView,但白色背景始终存在。当我单击表情符号时,它会正确显示在 UITextView
中,而没有白色背景。这可能是什么原因造成的?
这是软键盘的截图
I have an UITextView
extension with emoji enabled and when I switch to the emoji keyboard the emoticons have a white background. I tried to update the UITextView
background color, I removed the custom attributes from my extension and I also used a default UITextView
but the white background is always there. When I click on an emoticon it is correctly shown into the UITextView
without the white background. What could be the cause of this?
This is the screenshot of the soft keyboard
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我找到了这个的原因。我将其发布在这里以防有人遇到同样的问题。我正在设置
因为外观是全局设置的,并且键盘表情符号是 UICollectionViewCell 类型,所以每个单元格都显示白色背景。
由于我的 UICollectionViewCells 有一个自定义扩展,因此我将上一行更改为
I found the cause of this. I post this here in case someone has the same problem. I was setting
Because the appearance was set globally and the keyboard emoticons are of type
UICollectionViewCell
, the white background was shown for each cell.Since I have a custom extension for my UICollectionViewCells, I changed the previous line to