Skip to content

Commit

Permalink
Using the latest version of Octicons(v2.1.2, https://octicons.github.…
Browse files Browse the repository at this point in the history
  • Loading branch information
leichunfeng committed Jan 15, 2015
1 parent 4e46b5c commit f2c5ee3
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 19 deletions.
4 changes: 2 additions & 2 deletions OcticonsIOS/NSString+Octicons.h
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,6 @@ typedef NS_ENUM(NSInteger, OCTIcon) {
OCTIconListUnordered,
OCTIconLocation,
OCTIconLock,
OCTIconLogIn,
OCTIconLogOut,
OCTIconLogoGithub,
OCTIconMail,
OCTIconMailRead,
Expand Down Expand Up @@ -167,6 +165,8 @@ typedef NS_ENUM(NSInteger, OCTIcon) {
OCTIconSearch,
OCTIconServer,
OCTIconSettings,
OCTIconLogIn,
OCTIconLogOut,
OCTIconSplit,
OCTIconSquirrel,
OCTIconStar,
Expand Down
8 changes: 4 additions & 4 deletions OcticonsIOS/NSString+Octicons.m
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,6 @@ + (NSArray *)octicon_icons {
@"\uf061",
@"\uf060",
@"\uf06a",
@"\uf036",
@"\uf032",
@"\uf092",
@"\uf03b",
@"\uf03c",
Expand Down Expand Up @@ -193,6 +191,8 @@ + (NSArray *)octicon_icons {
@"\uf02e",
@"\uf097",
@"\uf07c",
@"\uf036",
@"\uf032",
@"\uf0c6",
@"\uf0b2",
@"\uf02a",
Expand Down Expand Up @@ -323,8 +323,6 @@ + (NSDictionary *)octicon_enumDictionary {
@"ListUnordered": @(OCTIconListUnordered),
@"Location": @(OCTIconLocation),
@"Lock": @(OCTIconLock),
@"LogIn": @(OCTIconLogIn),
@"LogOut": @(OCTIconLogOut),
@"LogoGithub": @(OCTIconLogoGithub),
@"Mail": @(OCTIconMail),
@"MailRead": @(OCTIconMailRead),
Expand Down Expand Up @@ -378,6 +376,8 @@ + (NSDictionary *)octicon_enumDictionary {
@"Search": @(OCTIconSearch),
@"Server": @(OCTIconServer),
@"Settings": @(OCTIconSettings),
@"LogIn": @(OCTIconLogIn),
@"LogOut": @(OCTIconLogOut),
@"Split": @(OCTIconSplit),
@"Squirrel": @(OCTIconSquirrel),
@"Star": @(OCTIconStar),
Expand Down
15 changes: 2 additions & 13 deletions OcticonsIOS/SNTXViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,23 +16,12 @@ @interface SNTXViewController () {

@end



@implementation SNTXViewController

- (instancetype)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil
{
self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil];
if (self) {
_currentIcon = OCTIconAlert;
}
return self;
}

- (void)viewDidLoad
{
[super viewDidLoad];

_currentIcon = OCTIconAlert;
[self sntx_displayCurrentIcon];
}

Expand All @@ -51,7 +40,7 @@ - (void)sntx_displayCurrentIcon

- (IBAction)iconButtonTapped:(id)sender
{
_currentIcon = (_currentIcon + 1) % OCTIconZap;
_currentIcon = (_currentIcon + 1) % (OCTIconZap + 1);
[self sntx_displayCurrentIcon];
}
@end
Binary file modified OcticonsIOS/octicons.ttf
Binary file not shown.

0 comments on commit f2c5ee3

Please sign in to comment.