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.
我希望将输入附件栏的背景颜色更改为微红色。在 MessageKit 的示例代码中,没有任何可以更改背景颜色的内容。并且运行这段代码不起作用:
messageInputBar.backgroundColor = .red or messageInputBar.backgroundView.backgroundColor = .red
你试过这个吗?:
messageInputBar.contentView.backgroundColor
要为 上的不同部分着色InputBarAccessoryView,请使用以下代码段:
InputBarAccessoryView
messageInputBar.contentView.backgroundColor = .red
messageInputBar.inputTextView.backgroundColor = .red
messageInputBar.backgroundView.backgroundColor = .red