gpt4 book ai didi

ios - 如何在 UIButton 中获取 "erase to left"图标

转载 作者:行者123 更新时间:2023-11-29 11:19:59 26 4
gpt4 key购买 nike

我正在尝试在 UIButton 的文本中获取“向左删除”符号 - 但是怎么做呢?

⌫   Delete  [Delete]    ⌫    U+232B  ERASE TO THE LEFT

或者我唯一的选择是在 UIButton 中放置一个 png 吗?

有什么想法吗? - 谢谢

最佳答案

可以将unicode字符设置为按钮的标签:

[myButton setTitle:@"\u232B" forState:UIControlStateNormal];

您可能需要调整字体、字体大小和内容插图以使其看起来更漂亮。

关于ios - 如何在 UIButton 中获取 "erase to left"图标,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7736662/

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