Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
ObjC wrapper for the iconic fonts.

This branch is 9 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
FontasticIcons.xcodeproj
FontasticIcons
.gitignore
CONTRIBUTING.markdown
FontasticIcons.podspec
LICENSE
README.markdown
example.png

README.markdown

FontasticIcons

FontasticIcons is an Objective-C wrapper for iconic fonts.

FontasticIcons example.

Installation

With CocoaPods

pod 'FontasticIcons'

Manual

Just add sources from FontasticIcons/Sources/Classes directory to your project.

Usage

With UIView

#import <FontasticIcons.h>
...
FIIconView *iconView = [[FIIconView alloc] initWithFrame:CGRectMake(0, 0, 50, 50)];
iconView.backgroundColor = [UIColor clearColor];
iconView.icon = [FIEntypoIcon leafIcon];
iconView.padding = 2;
iconView.iconColor = [UIColor greenColor];
[self.view addSubview:iconView];

With UITabBarItem

#import <FontasticIcons.h>
...
FIIcon *icon = [FIEntypoIcon leafIcon];    
UIImage *image = [icon imageWithBounds:CGRectMake(0, 0, 30, 30) color:[UIColor blackColor]];
[self.tabBarItem setImage:image];

With UIButton

#import <FontasticIcons.h>
...
UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
button.frame = CGRectMake(0, 0, 60, 40);
FIIcon *icon = [FIEntypoIcon leafIcon];    

FIIconLayer *layer = [FIIconLayer new];
layer.icon = icon;
layer.frame = button.bounds;
layer.iconColor = [UIColor greenColor];
[button.layer addSublayer:layer];

Available fonts

License

Source code distributed under MIT license.

Note that all fonts have their own license.

Something went wrong with that request. Please try again.