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

后端 未结 17 1423
不思量自难忘°
不思量自难忘° 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:49

    You can just use the literal code string by affixing it with \u.

    e.g. You can use \f030 in your iOS app using the following snippet.

    [[[UILabel alloc] initWithFrame:CGRectZero] setText:@"\uf030"];

提交回复
热议问题