Skip to content

Commit

Permalink
changed everything to use bundleForClass:
Browse files Browse the repository at this point in the history
  • Loading branch information
gscalzo committed Jan 6, 2015
1 parent 0bb71db commit fefd9e5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion FontAwesomeKit.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "FontAwesomeKit"
s.version = "2.1.8"
s.version = "2.1.9"
s.summary = "Icon font library for iOS. Currently supports Font-Awesome, Foundation icons, Zocial, and ionicons"
s.homepage = "https://github.com/PrideChung/FontAwesomeKit"
s.screenshots = "http://i.minus.com/i3vNn0fTwcJeI.png", "http://i.minus.com/ivKqhOLJLVvmJ.png"
Expand Down
2 changes: 1 addition & 1 deletion FontAwesomeKit/FAKFontAwesome.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
#ifndef DISABLE_FONTAWESOME_AUTO_REGISTRATION
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL:[[NSBundle mainBundle] URLForResource:@"FontAwesome" withExtension:@"otf"]];
[self registerIconFontWithURL:[[NSBundle bundleForClass:[FAKFontAwesome class]] URLForResource:@"FontAwesome" withExtension:@"otf"]];
});
#endif

Expand Down
2 changes: 1 addition & 1 deletion FontAwesomeKit/FAKFoundationIcons.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
#ifndef DISABLE_FOUNDATIONICONS_AUTO_REGISTRATION
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL: [[NSBundle mainBundle] URLForResource:@"foundation-icons" withExtension:@"ttf"]];
[self registerIconFontWithURL: [[NSBundle bundleForClass:[FAKFoundationIcons class]] URLForResource:@"foundation-icons" withExtension:@"ttf"]];
});
#endif

Expand Down
2 changes: 1 addition & 1 deletion FontAwesomeKit/FAKIonIcons.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
#ifndef DISABLE_IONICONS_AUTO_REGISTRATION
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL: [[NSBundle mainBundle] URLForResource:@"ionicons" withExtension:@"ttf"]];
[self registerIconFontWithURL: [[NSBundle bundleForClass:[FAKIonIcons class]] URLForResource:@"ionicons" withExtension:@"ttf"]];
});
#endif

Expand Down
2 changes: 1 addition & 1 deletion FontAwesomeKit/FAKZocial.m
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
#ifndef DISABLE_ZOCIAL_AUTO_REGISTRATION
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL: [[NSBundle mainBundle] URLForResource:@"zocial-regular-webfont" withExtension:@"ttf"]];
[self registerIconFontWithURL: [[NSBundle bundleForClass:[FAKZocial class]] URLForResource:@"zocial-regular-webfont" withExtension:@"ttf"]];
});
#endif

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ + (UIFont *)iconFontWithSize:(CGFloat)size
{
static dispatch_once_t onceToken;
dispatch_once(&onceToken, ^{
[self registerIconFontWithURL:[[NSBundle mainBundle] URLForResource:@"FontAwesome" withExtension:@"otf"]];
[self registerIconFontWithURL:[[NSBundle bundleForClass:[FAKMockIcon class]] URLForResource:@"FontAwesome" withExtension:@"otf"]];
});

UIFont *font = [UIFont fontWithName:@"FontAwesome" size:size];
Expand Down

0 comments on commit fefd9e5

Please sign in to comment.