diff --git a/FontAwesomeKit/FAKIcon.m b/FontAwesomeKit/FAKIcon.m index 8af6ee6..febf5da 100644 --- a/FontAwesomeKit/FAKIcon.m +++ b/FontAwesomeKit/FAKIcon.m @@ -68,7 +68,9 @@ - (NSString *)characterCode - (NSString *)iconName { - return [[self class] allIcons][[self characterCode]]; + NSDictionary *allIcons = [[self class] allIcons]; + NSUInteger index = [[allIcons allValues] indexOfObject:[self characterCode]]; + return [allIcons allKeys][index]; } - (CGFloat)iconFontSize