ios-runtime 之PX字体UIFont之前的转换.zip

时间:2022-07-31 13:43:56
【文件属性】:
文件名称:ios-runtime 之PX字体UIFont之前的转换.zip
文件大小:95KB
文件格式:ZIP
更新时间:2022-07-31 13:43:56
其他 UI设计师在给设计,字体一般给的是像素值,这里利用runtime覆盖了UIFont的系统方法([UIFont systemFontOfSize:34.0]),再次调用的时候直接传像素值就可以了。 直接将UIFont分类拖到工程中,如有错误将Build Settings中搜索 mag,将YES该我NO
【文件预览】:
RunTime_font
----RunTime_fontTests()
--------Info.plist(733B)
--------RunTime_fontTests.m(912B)
----.DS_Store(6KB)
----RunTime_font.xcodeproj()
--------project.xcworkspace()
--------xcuserdata()
--------project.pbxproj(21KB)
----RunTime_fontUITests()
--------Info.plist(733B)
--------RunTime_fontUITests.m(1KB)
----RunTime_font()
--------ViewController.m(674B)
--------Info.plist(1KB)
--------main.m(332B)
--------UIFont+Font.h(188B)
--------屏幕快照 2016-08-10 12.43.43 PM.png(65KB)
--------Base.lproj()
--------UIFont+Font.m(729B)
--------ViewController.h(213B)
--------AppDelegate.h(275B)
--------Assets.xcassets()
--------AppDelegate.m(2KB)

网友评论