I added autoLayout in storyBoard (w: Any, h: Any)
But because of fixed font size, The font size is same in all of devices (4, 4.7, 5.5 inch)
It looks nice in 4 inch. But in 5.5 inch, That's too small
I want to dynamically inclease and decrease UIlabel font size in any devices.
Any Ideas?
No, you can't config size class for iPhone 5.5 only. Size class can not distinguish iPhone 5, 6 vs 6Plus.
Only 1 edge case supports for iPhone 5.5 landscape only:
regular width, compact height: 5.5" iPhone in Landscape
The only way you can do it is check device size in you code !
I Found Solution
I Made one Class
}
Then, Set Class
And Then, Set Value
Happy Coding!
Check the screen size and manipulate the font size based on it:
UPDATE:
Extend the UILabel class to setup your label:
then wherever you have a label that you want with dynamic size just call:
WIth xcode 7.3, you can click add '+' in Attributes inspector to select font size each device