文章目录
  1. 1. 如何使用

如何使用

  • UIButton+Bootstrap,NSString+FontAwesome,FontAwesome.ttf文件添加进工程
  • 导入UIButton+Bootstrap.h
  • Info.plist中的Fonts provided by application中包含FontAwesome.ttf

创建自定义的UIButoon(把type属性设置为Custom)
设置风格

1
2
[yourButton primaryStyle];
[yourOtherButton successStyle];

设置图标

1
2
[yourButton addAwesomeIcon:FAIconBookmark beforeTitle:YES];
[yourOtherButton addAwesomeIcon:FAIconCalendar beforeTitle:NO];

文章目录
  1. 1. 如何使用