iPhone:横向模式下标签中数字的垂直对齐
我正在尝试将我的 iPhone 应用程序计时器的标签文本垂直对齐。基本上它是一个游戏应用程序,计时器值在横向模式下以 MM:SS 格式显示在标签中。当我添加标签并尝试设置此值时,它看起来像图像 1,这是不正确的。我从许多线程中发现,您可以设置多行并将标签宽度设置为一个字符,但它看起来像图像 2,这也是错误的。我希望我的计时器值显示为图 3。谁能告诉我如何实现它?
谢谢。
[添加了我想要做的事情的真实图片]
I am trying to align label text vertically aligned for my iPhone application Timer. Basically it's a game application and timer value appears in MM:SS format in label in landscape mode. When I have added label and tried to set this value it appears like image 1 which is not correct. I found from many threads that you can set multiple line and make label width as one char but it appears like image 2 which is also wrong. I want my timer value to appear as image 3. Could anyone please tell me how could I achieve it?
Thanks.
[Added real picture of what I am trying to do]
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
试试这个
try this