Coder Social home page Coder Social logo

Comments (3)

JohnWickham avatar JohnWickham commented on June 24, 2024

Or give instructions for doing this ourselves, I'll save you the trouble.

from ios-fontawesome.

trivektor avatar trivektor commented on June 24, 2024

+1 for the 3.1.1 icons request

from ios-fontawesome.

codyhazelwood avatar codyhazelwood commented on June 24, 2024

For now, if you want to use icons from FontAwesome 3.1.1, here's how you can do it:

Go here: https://github.com/leberwurstsaft/FontAwesome-for-iOS, and download the "fixed" FontAwesome.ttf and add it to your project.

Now, in places in your code that look like this:

button.titleLabel.font = [UIFont fontWithName:kFontAwesomeFamilyName size:20];
[button setTitle:[NSString fontAwesomeIconStringForEnum:FAIconLink] forState:UIControlStateNormal];

Change them to this:

button.titleLabel.font = [UIFont fontWithName:kFontAwesomeFamilyName size:20];
[button setTitle:[NSString stringWithUTF8String:"\uF127"] forState:UIControlStateNormal];

Replace F127 with the Unicode character code for the new icon you want to use. You can find those codes here: http://fortawesome.github.io/Font-Awesome/icons/#new. Click the icon you want, and the code will be listed right beside it.

Note: you only have to use the Unicode character code for new icons. The old icons will still work the same.

I'll try to add support for 3.1.1 icons and submit a pull request. It may be a little while before I can get to it.

from ios-fontawesome.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.