现在我们可以通过字体使用图标了
swift
和easyios
的字体图片演示,可以用来作为图片字典查阅ttf
和json
文件就可以轻松扩展特殊字体 FontAwesome
、 Zocial-Regular
、 Ionicons
、 Foundation
1. 从 CocoaPods 中导入 添加以下内容到 Podfile,然后运行 pod install
pod 'FontIcon', '~> 1.0'
2. 克隆仓库 (HTTP)
https://github.com/zhuchaowe/FontIcon.git
NSString *icon = [IconFont icon:@"fa_align_left" fromFont:fontAwesome];
[IconFont buttonWithIcon:icon fontName:fontAwesome size:24.0f color:[UIColor whiteColor]];