iPhone4, 4 s :320 * 480
iPhone5, 5 c, 5 s :320 * 568
iPhone6 6 s 7,:375 * 667
iPhone6plus 7 +: 414 * 736
iPad:
以在iPhone5字号为12日,
iPhone4用iPhone5的字号:12 .
iPad 使用iPhone6plus的字号
iPhone6和iPhone6plus的字号计算公式是
iPhone6的字号为14.077
iPhone6plus的字号为15.537
# define IS_IPAD ([[UIDevice currentDevice] userInterfaceIdiom]==UIUserInterfaceIdiomPad),,(SCREEN_WIDTH_NEW比;760)
# define SCALE_FONT (IS_IPAD & # 63;(15.537/12.0):((SCREEN_WIDTH==320) & # 63;1:((SCREEN_WIDTH==375) & # 63;(14.077/12.0):(15.537/12.0))))
button.titleLabel。字体=[UIFont systemFontOfSize: 12 * SCALE_FONT];
以上这篇iOS实现对不同分辨率设备的字号大小适配方法就是小编分享给大家的全部内容了,希望能给大家一个参考,也希望大家多多支持。