1

I have created a Launch screen.I have added one image & label on it.Now for diffrent screen size devices i am able to increase the size of image with autolayout.But i am not able to increase the font size of label.I can't use custom class of label for storyboard.So is there any way with i am able to increase font size for multiple devices on launch screen.

rmaddy
  • 314,917
  • 42
  • 532
  • 579
dhiraj
  • 83
  • 2
  • 10
  • Possible duplicate of [Dynamically changing font size of UILabel](http://stackoverflow.com/questions/4865458/dynamically-changing-font-size-of-uilabel) – Vinodh Oct 28 '16 at 05:02
  • plz see this link http://stackoverflow.com/questions/40080247/nslabel-autoshrink-with-top-constraints/40082296#40082296 i hope it's work for you. – balkaran singh Oct 28 '16 at 06:00

3 Answers3

1

Option for different font size for different size class is available in storyboard.

enter image description here

Irfan
  • 5,070
  • 1
  • 28
  • 32
0

NO. It is not possible to implement custom font for LaunchScreen, since LaunchScreen will be loaded before your custom fonts load. Better create different images with the text you want to display.

Manishankar
  • 327
  • 1
  • 12
0

Well it is not possible you can write code for a launchScreen and handle some logic as for a conventional ViewController. Also you cannot use a custom class of label or extension. You can use only Auto-Layout and size classes. The detailed explanation is in the link

Community
  • 1
  • 1
Md. Ibrahim Hassan
  • 5,359
  • 1
  • 25
  • 45