gpt4 book ai didi

ios - 如何用两行制作 UILabel 或 UIButton,第一行有一个字符,第二行有两个字符?

转载 作者:可可西里 更新时间:2023-11-01 00:52:54 25 4
gpt4 key购买 nike

我想要一个有两行的 UILabel 或 UIButton,第一行有一个字符,第二行有两个字符,如下图所示

enter image description here

有人知道吗?

最佳答案

对于多行 UIButton 只需将 Line Break 设置为 Word Wrap 并使用换行符设置按钮文本(在界面构建器中它是ctrl+enter)。

enter image description here

关于ios - 如何用两行制作 UILabel 或 UIButton,第一行有一个字符,第二行有两个字符?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31051345/

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