-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.m
More file actions
27 lines (19 loc) · 775 Bytes
/
template.m
File metadata and controls
27 lines (19 loc) · 775 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/*
Autogenerated with the script https://github.com/palcalde/iOSFontHelper
You can generate a new version with: ruby fontHelper-objectivec.rb path_to_ttf_file path_to_save_generated_code
Sample: ruby iOSFontHelper/fontHelper.rb ~/Projects/MyApp/Fonts/yourFont.ttf .
*/
#import "NSString+<<FONTNAME>>.h"
@implementation NSString (<<FONTNAME>>)
+ (NSString*)<<FONTNAME>>CharacterStringForEnum:(<<FONTNAME>>)value {
return [NSString <<FONTNAME>>UnicodeStrings][value];
}
+ (NSArray *)<<FONTNAME>>UnicodeStrings {
static NSArray *fontUnicodeStrings;
static dispatch_once_t unicodeStringsOnceToken;
dispatch_once(&unicodeStringsOnceToken, ^{
fontUnicodeStrings = <<UNICODES_ARRAY>>
});
return fontUnicodeStrings;
}
@end