How to integrate and use Font Awesome with Objective-C or Swift in an Xcode project?

后端 未结 17 1404
不思量自难忘°
不思量自难忘° 2020-12-12 18:07

So I am trying to use this font http://fortawesome.github.com/Font-Awesome/. I\'ve added the font as a resource and put it in the plist file. Here\'s how I am using it:

17条回答
  •  春和景丽
    2020-12-12 18:48

    Not sure you ever got this working properly, but there's now a couple of nice projects on github:

    https://github.com/alexdrone/ios-fontawesome - which gives you a category for NSString which offers basic help using FontAwesome.

    and https://github.com/leberwurstsaft/FontAwesome-for-iOS which gives you a NSString category with fontAwesomeIconStringForIconIdentifier and also an UIImageView subclass: FAImageView

提交回复
热议问题