Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Example screenshot added

  • Loading branch information...
commit cecbee72ba01cfb7834f7d3f808b8b804132ec8f 1 parent afae628
Alexey Denisov authored
12  FontasticIcons/Sample/FIViewController.m
@@ -44,6 +44,7 @@ - (void)viewDidLoad
44 44
         iconView.backgroundColor = [UIColor clearColor];
45 45
         iconView.icon = [FIEntypoIcon iconWithName:iconName];
46 46
         iconView.padding = 2;
  47
+        iconView.iconColor = [self randomColor];
47 48
         [scrollView addSubview:iconView];
48 49
         currentColumn++;
49 50
     }
@@ -61,6 +62,7 @@ - (void)viewDidLoad
61 62
         iconView.backgroundColor = [UIColor clearColor];
62 63
         iconView.icon = [FIEntypoSocialIcon iconWithName:iconName];
63 64
         iconView.padding = 2;
  65
+        iconView.iconColor = [self randomColor];
64 66
         [scrollView addSubview:iconView];
65 67
         currentColumn++;
66 68
     }
@@ -71,4 +73,14 @@ - (void)viewDidLoad
71 73
     
72 74
 }
73 75
 
  76
+- (UIColor *)randomColor {
  77
+    int r = arc4random() % 255;
  78
+    int g = arc4random() % 255;
  79
+    int b = arc4random() % 255;
  80
+    return [UIColor colorWithRed:r/255.f
  81
+                           green:g/255.f
  82
+                            blue:b/255.f
  83
+                           alpha:1];
  84
+}
  85
+
74 86
 @end
4  README.markdown
Source Rendered
@@ -2,6 +2,8 @@
2 2
 
3 3
 FontasticIcons is an Objective-C wrapper for iconic fonts.
4 4
 
  5
+![FontasticIcons example](https://github.com/AlexDenisov/FontasticIcons/blob/master/example.png?raw=true).
  6
+
5 7
 ## Installation
6 8
 
7 9
 ### With CocoaPods
@@ -10,7 +12,7 @@ FontasticIcons is an Objective-C wrapper for iconic fonts.
10 12
 
11 13
 ### Manual
12 14
 
13  
-Just add sources from `FontasticIcons/Sources` directory to your project.
  15
+Just add sources from `FontasticIcons/Sources/Classes` directory to your project.
14 16
  
15 17
 ## Usage
16 18
 
BIN  example.png

0 notes on commit cecbee7

Please sign in to comment.
Something went wrong with that request. Please try again.