Latest 0.4.2
License MIT
Platforms ios 5.0, requires ARC
Frameworks UIKit, Foundation, CoreGraphics
Authors ,

XBIconFont is just another icon font containing a (really) small subset of useful glyphs.


First, make sure you have xbiconfont.ttf bundled in your project and that UIAppFonts key in the project’s plist file contains a String item named xbiconfont.ttf
Then add the NSString+XBIconFont category to the project.

UILabel *label = [...]
label.font = [UIFont fontWithName:kXBIconFontFamilyName size:20];

You can now use enums for all the different glyphs

label.text = [NSString stringForIconName:XBIFStar];


label.text = [NSString fontAwesomeIconStringForIconIdentifier:@"xbif-star"];


XBIconFont is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod "XBIconFont"


XBIconFontImageView contains a new property called defaultView that is shown when the image is set to nil.
It is possible to use one the font-awesome icon as a default placeholder for an image view.

XBIconFontImageView *imageView = [[XBIconFontImageView alloc] initWithFrame:CGRectMake(0.f, 0.f, 100.f, 100.f)];
imageView.image = nil;
[imageView setDefaultIconIdentifier:@"xbif-star"];


This project uses the FontAwesome fix made by Pit Garbe that you can find at Version 2.0 of the Font Awesome font, CSS, and LESS files are licensed under CC BY 3.0: A mention of ‘Font Awesome –‘ in human-readable source code is considered acceptable attribution (most common on the web). If human readable source code is not available to the end user, a mention in an ‘About’ or ‘Credits’ screen is considered acceptable (most common in desktop or mobile software)

Latest podspec

    "name": "XBIconFont",
    "version": "0.4.2",
    "summary": "Category that adds iOS 7-like icons convenience methods.",
    "homepage": "",
    "license": {
        "type": "MIT"
    "authors": {
        "Simone Civetta": "[email protected]",
        "Alex Usbergo": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.4.2"
    "platforms": {
        "ios": "5.0"
    "source_files": "*.{h,m}",
    "exclude_files": "Demo",
    "resources": "Resources/*.ttf",
    "frameworks": [
    "requires_arc": true

Pin It on Pinterest

Share This