As you mentioned in your question, you need to provide separate font sizes for different devices.
First of all, we cannot achieve this on the storyboard.
You need to assign different font sizes manually using If conditions and validation devices.
For ex:
if ([[UIScreen mainScreen] bounds].size.height == 568) { // Assign Font size for iPhone 5 }else if ([[UIScreen mainScreen] bounds].size.height == 667){ // Assign Font size for iPhone 6 }else if ([[UIScreen mainScreen] bounds].size.height == 736){ // Assign Font size for iPhone 6+ }else if ([[UIScreen mainScreen] bounds].size.height == 480){ // Assign Font size for iPhone 4s }
Note:
- You can create a separate Font class, and if you have done this already, you just need to put above the checks in this class.
source share