Last active
August 29, 2015 14:24
-
-
Save orgmir/666d7bf4f05c6d419e05 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface DashboardCollectionViewCell : UICollectionViewCell | |
@property (weak, nonatomic) DashboardItem *dashboardItem; | |
+ (void) setupCell:(DashboardCollectionViewCell*)cell dashboardItem:(DashboardItem*)item; | |
@end | |
@implementation | |
static NSNumberFormatter *numberFormatter; | |
+ (NSNumberFormatter *) numberFormatter { | |
static NSNumberFormatter *numberFormatter = nil; | |
static dispatch_once_t onceToken; | |
dispatch_once(&onceToken, ^{ | |
numberFormatter = [[NSNumberFormatter alloc] init]; | |
[numberFormatter setNumberStyle:NSNumberFormatterDecimalStyle]; | |
[numberFormatter setMaximumFractionDigits:1]; | |
}); | |
return numberFormatter; | |
} | |
+ (void) setupCell:(DashboardCollectionViewCell*)cell dashboardItem:(DashboardItem*)item | |
{ | |
// HERE GOES SETUP CODE!! | |
} | |
@end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment