UILabel文本偏移/缩进
如何向 UILabel 内的文本添加缩进或偏移?它需要是特定的像素大小,与字体大小无关。
How can I add an indent or offset to text inside a UILabel? It needs to be a specific pixel size, independent of the font size.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您可以创建另一个
UILabel
,然后将每个标签的框架设置为一定的宽度,这样,如果您想要实现这一目标,就可以相当轻松地动态完成。you could create another
UILabel
and then set each label's frames to be a certain width apart, that way it could be done dynamically rather easily if thats what you are trying to accomplish.