Different font size for UILabel using adaptive layout

只愿长相守 提交于 2019-12-05 02:35:46

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

In viewDidAppear or viewWillAppear, you can detect the size of the layout. You only have to update font size based on the detected size.
You can use [[UIScreen mainScreen] bounds]; or in iOS8 : [[UIScreen mainScreen] nativeBounds];

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!