Permalink
Browse files

Example screenshot added

  • Loading branch information...
1 parent afae628 commit cecbee72ba01cfb7834f7d3f808b8b804132ec8f @AlexDenisov committed Oct 29, 2012
Showing with 15 additions and 1 deletion.
  1. +12 −0 FontasticIcons/Sample/FIViewController.m
  2. +3 −1 README.markdown
  3. BIN example.png
@@ -44,6 +44,7 @@ - (void)viewDidLoad
iconView.backgroundColor = [UIColor clearColor];
iconView.icon = [FIEntypoIcon iconWithName:iconName];
iconView.padding = 2;
+ iconView.iconColor = [self randomColor];
[scrollView addSubview:iconView];
currentColumn++;
}
@@ -61,6 +62,7 @@ - (void)viewDidLoad
iconView.backgroundColor = [UIColor clearColor];
iconView.icon = [FIEntypoSocialIcon iconWithName:iconName];
iconView.padding = 2;
+ iconView.iconColor = [self randomColor];
[scrollView addSubview:iconView];
currentColumn++;
}
@@ -71,4 +73,14 @@ - (void)viewDidLoad
}
+- (UIColor *)randomColor {
+ int r = arc4random() % 255;
+ int g = arc4random() % 255;
+ int b = arc4random() % 255;
+ return [UIColor colorWithRed:r/255.f
+ green:g/255.f
+ blue:b/255.f
+ alpha:1];
+}
+
@end
View
@@ -2,6 +2,8 @@
FontasticIcons is an Objective-C wrapper for iconic fonts.
+![FontasticIcons example](https://github.com/AlexDenisov/FontasticIcons/blob/master/example.png?raw=true).
+
## Installation
### With CocoaPods
@@ -10,7 +12,7 @@ FontasticIcons is an Objective-C wrapper for iconic fonts.
### Manual
-Just add sources from `FontasticIcons/Sources` directory to your project.
+Just add sources from `FontasticIcons/Sources/Classes` directory to your project.
## Usage
View
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit cecbee7

Please sign in to comment.