使用自适应布局的UILabel的字体大小不同 [英] Different font size for UILabel using adaptive layout

查看:210
本文介绍了使用自适应布局的UILabel的字体大小不同的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Xcode 6中,我们有一个名为自适应布局的新功能。通过使用我已经创建了一个新项目,我需要根据布局不同的字体大小。

In Xcode 6 we have a new feature called adaptive layout. By using that I have created a new project in which it I need to have different font size based on the layout.

在iPhone 3.5英寸屏幕中我必须有字体大小17pt,iPhone中的其他屏幕大小必须是21pt。

In iPhone 3.5 inch screen I must have font size as 17pt, and other screen size in iPhone must be 21pt.

有谁能告诉我如何使用自适应布局实现这一目标?

Can anyone tell me how I can achieve this using adaptive layout?

推荐答案

是的,你可以使用storyboad。字体左侧有一个+号,单击它并选择尺寸等级并选择所需的字体大小

Yes, you can do with storyboad. There is a + sign on the left of the font, click it and select the size class and choose the font size needed

这篇关于使用自适应布局的UILabel的字体大小不同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆