gpt4 book ai didi

macos - 如何在界面生成器中为 UILabel 编写分数?

转载 作者:行者123 更新时间:2023-12-03 17:21:39 26 4
gpt4 key购买 nike

左边:当前右边:这就是我需要的

enter image description here

最佳答案

如果您直接在界面构建器中设置值。您只需复制此 (⅓) 并粘贴到那里并调整字体大小即可。

如果您从代码进行设置,则定义的分数有 unicode 字符。你可以使用它们。

例如,对于 1/3,

const unichar third = 0x2153;
labelText = [NSString stringWithCharacters:&third length:1];

对于其他分数,请检查此 link

关于macos - 如何在界面生成器中为 UILabel 编写分数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24055858/

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