Latest 1.0.1
Homepage https://github.com/EvanTong1008/ETFontSize
License MIT
Platforms ios 7.0, requires ARC
Authors

一.功能简介:iOS开发中的UIFont的类别,可随设备变化而自动改变字体大小

二.如何引用

  • pod ‘ETFontSize’, ‘~>1.0.0’

三.字体设置:

1.默认字体大小:
  • 4系列–>14.0
  • 5系列–>14.0
  • 6系列–>15.0
  • 6P系列–>17.0
2.ETSizeType
  • ETSizeVeryLittle–>默认值基础上-4
  • ETSizeLittle–>默认值基础上-2
  • ETSizeNormal–>默认值
  • ETSizeLarge–>默认值基础上+2
  • ETSizeVeryLarge–>默认值基础上+4
3.sizepoor
  • 在默认值基础上加成sizepoor后的大小
  • 举例1,在6S上设置sizepoor为2,则字体大小设置为17.0
  • 举例2,在6P上设置sizepoor为-3,则字体设置为14.0

四.使用说明

  • label.font = [UIFont ETSystemFontDependOnDeviceSizetype:ETSizeLittle];
  • label.font = [UIFont ETSystemFontDependOnDeviceSizepoor:2.0];
  • fontSize = [UIFont ETFontSizeWithDeviceSizepoor:3.0]];

Latest podspec

{
    "name": "ETFontSize",
    "version": "1.0.1",
    "summary": "ETFontSize set fontsize",
    "description": "iOSu5f00u53d1u4e2du7684UIFontu7684u7c7bu522buff0cu53efu968fu8bbeu5907u4e0du540cu800cu81eau52a8u6539u53d8u5b57u4f53u5927u5c0f",
    "homepage": "https://github.com/EvanTong1008/ETFontSize",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "EvanTong": "[email protected]"
    },
    "platforms": {
        "ios": "7.0"
    },
    "source": {
        "git": "https://github.com/EvanTong1008/ETFontSize.git",
        "tag": "1.0.1"
    },
    "source_files": "ETFontSize/ETFontSize/ETFontSize/*.{h,m}",
    "requires_arc": true
}

Pin It on Pinterest

Share This