朱海文 3e28daaec5 init | 3 years ago | |
---|---|---|
.. | ||
FontAwesome | 3 years ago | |
FoundationIcons | 3 years ago | |
IonIcons | 3 years ago | |
Zocial | 3 years ago | |
FontHeader.h | 3 years ago | |
IconFont.h | 3 years ago | |
IconFont.m | 3 years ago | |
LICENSE | 3 years ago | |
README.md | 3 years ago | |
fontIconConfig.json | 3 years ago |
now we can use icon by font
swift
和easyios
的字体图片演示,可以用来作为图片字典查阅ttf
和json
文件就可以轻松扩展特殊字体FontAwesome
、Zocial-Regular
、Ionicons
、Foundation
##Install
1.Import from CocoaPods Add below to Podfile and run pod install
pod 'FontIcon', '~> 1.0'
2.Clone the repo (HTTP)
https://github.com/zhuchaowe/FontIcon.git
##Tasks ###Class IconFont
##Usage
NSString *icon = [IconFont icon:@"fa_align_left" fromFont:fontAwesome];
[IconFont buttonWithIcon:icon fontName:fontAwesome size:24.0f color:[UIColor whiteColor]];