Comments (3)
Or give instructions for doing this ourselves, I'll save you the trouble.
from ios-fontawesome.
+1 for the 3.1.1 icons request
from ios-fontawesome.
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)
- To delete - (Link is actually alright)
- Seeing a mismatch. @"fa-github" gives me "fa-glass" HOT 6
- FA 4.2 icons not showing
- Is icon-spin supported? HOT 1
- Build warning in +imageWithIcon:backgroundColor:iconColor:andSize: HOT 1
- Is there any way to put font from storyboard? HOT 4
- Battery 0..4 are rendered truncated HOT 2
- Where is FAIcon enum?? HOT 1
- Icon + Text HOT 1
- WhatsApp Icon
- Can't install last version.
- CocoaPods
- UIImages get trimmed when the image doesn't fit the size.
- App crashed when use_framework!
- Icon not showing and app crash on second access HOT 2
- Carthage support
- How to update to FontAwesome 4.6 ?
- Getting Link command with exit code 1 error
- Swift 4 Support? HOT 1
- Failed to download 'FontAwesome+iOS' HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ios-fontawesome.