Skip to content

Commit

Permalink
Demo and Readme updated
Browse files Browse the repository at this point in the history
  • Loading branch information
xjrcode committed Jan 10, 2014
1 parent a091fbc commit d49bcdd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions Demo/FontAwesome-iOS Demo/FAViewController.m
Expand Up @@ -34,8 +34,8 @@ - (void)viewDidLoad
star.frame = CGRectMake(60.f+(i *40.f), 200.f, 40.f, 40.f);
star.titleLabel.font = [UIFont fontWithName:kFontAwesomeFamilyName size:35];
star.titleLabel.shadowOffset = CGSizeMake(0, -1);
[star setTitle:[NSString fontAwesomeIconStringForEnum:FAIconStarEmpty] forState:UIControlStateNormal];
[star setTitle:[NSString fontAwesomeIconStringForEnum:FAIconStar] forState:UIControlStateSelected];
[star setTitle:[NSString fontAwesomeIconStringForEnum:FAStarO] forState:UIControlStateNormal];
[star setTitle:[NSString fontAwesomeIconStringForEnum:FAStar] forState:UIControlStateSelected];
[star setTitleColor:[UIColor orangeColor] forState:UIControlStateNormal];
[star addTarget:self action:@selector(didSelectStar:) forControlEvents:UIControlEventTouchDown];
[self.view addSubview:star];
Expand Down
4 changes: 2 additions & 2 deletions FAImageView.m 100644 → 100755
Expand Up @@ -52,9 +52,9 @@ - (UILabel*)defaultView
_defaultView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

//The default icon is the ban icon
[self setDefaultIcon:FAIconBanCircle];
[self setDefaultIcon:FABan];

_defaultView.font = [UIFont iconicFontOfSize:self.bounds.size.height];
_defaultView.font = [UIFont fontAwesomeFontOfSize:self.bounds.size.height];
_defaultView.textAlignment = NSTextAlignmentCenter;
_defaultView.adjustsFontSizeToFitWidth = YES;

Expand Down
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -16,12 +16,12 @@ Then add the `NSString+FontAwesome` category to the project.

You can now use enums for all the different iconic characters

label.text = [NSString fontAwesomeIconStringForEnum:FAIconGithub];

label.text = [NSString fontAwesomeIconStringForEnum:FAGithub];
or you can reference them by using the class identifiers listed here http://fortawesome.github.com/Font-Awesome/#all-icons

label.text = [NSString fontAwesomeIconStringForIconIdentifier:@"icon-github"];

label.text = [NSString fontAwesomeIconStringForIconIdentifier:@"fa-github"];
That's it!
For further information have a look to the small demo project!

Expand All @@ -33,7 +33,7 @@ It is possible to use one the font-awesome icon as a default placeholder for an

FAImageView *imageView = [[FAImageView alloc] initWithFrame:CGRectMake(0.f, 0.f, 100.f, 100.f)];
imageView.image = nil;
[imageView setDefaultIconIdentifier:@"icon-github"];
[imageView setDefaultIconIdentifier:@"fa-github"];

License
-------------------
Expand Down

0 comments on commit d49bcdd

Please sign in to comment.