Skip to content

Commit

Permalink
UI overhaul for iOS 7
Browse files Browse the repository at this point in the history
  • Loading branch information
Ole Zorn committed Oct 26, 2013
1 parent 73ba06d commit 51aa7b0
Show file tree
Hide file tree
Showing 65 changed files with 324 additions and 196 deletions.
72 changes: 20 additions & 52 deletions AppSales.xcodeproj/project.pbxproj

Large diffs are not rendered by default.

@@ -0,0 +1,39 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDESourceControlProjectIdentifier</key>
<string>08ED4EBE-FDAD-46CC-AF72-7E8915FE9D00</string>
<key>IDESourceControlProjectName</key>
<string>AppSales</string>
<key>IDESourceControlProjectOriginsDictionary</key>
<dict>
<key>CD0CEDBD-6CB0-407F-AF25-62D3A517214E</key>
<string>ssh://github.com/omz/AppSales-Mobile.git</string>
</dict>
<key>IDESourceControlProjectPath</key>
<string>AppSales.xcodeproj/project.xcworkspace</string>
<key>IDESourceControlProjectRelativeInstallPathDictionary</key>
<dict>
<key>CD0CEDBD-6CB0-407F-AF25-62D3A517214E</key>
<string>../..</string>
</dict>
<key>IDESourceControlProjectURL</key>
<string>ssh://github.com/omz/AppSales-Mobile.git</string>
<key>IDESourceControlProjectVersion</key>
<integer>110</integer>
<key>IDESourceControlProjectWCCIdentifier</key>
<string>CD0CEDBD-6CB0-407F-AF25-62D3A517214E</string>
<key>IDESourceControlProjectWCConfigurations</key>
<array>
<dict>
<key>IDESourceControlRepositoryExtensionIdentifierKey</key>
<string>public.vcs.git</string>
<key>IDESourceControlWCCIdentifierKey</key>
<string>CD0CEDBD-6CB0-407F-AF25-62D3A517214E</string>
<key>IDESourceControlWCCName</key>
<string>AppSales</string>
</dict>
</array>
</dict>
</plist>
2 changes: 0 additions & 2 deletions Classes/AccountStatusView.m
Expand Up @@ -27,8 +27,6 @@ - (id)initWithFrame:(CGRect)frame account:(ASAccount *)anAccount
statusLabel.backgroundColor = [UIColor clearColor];
statusLabel.font = [UIFont systemFontOfSize:14.0];
statusLabel.textColor = [UIColor colorWithRed:0.322 green:0.357 blue:0.443 alpha:1.0];
statusLabel.shadowColor = [UIColor whiteColor];
statusLabel.shadowOffset = CGSizeMake(0, 1);
statusLabel.textAlignment = UITextAlignmentCenter;
[self addSubview:statusLabel];

Expand Down
7 changes: 3 additions & 4 deletions Classes/AccountsViewController.m
Expand Up @@ -60,6 +60,8 @@ - (void)viewDidLoad
self.navigationItem.rightBarButtonItem = refreshButtonItem;

self.title = NSLocalizedString(@"AppSales", nil);
self.navigationItem.backBarButtonItem = [[[UIBarButtonItem alloc] initWithTitle:@"" style:UIBarButtonItemStylePlain target:nil action:nil] autorelease];

UIBarButtonItem *addButton = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemAdd target:self action:@selector(addNewAccount)] autorelease];
self.navigationItem.leftBarButtonItem = addButton;

Expand Down Expand Up @@ -124,10 +126,9 @@ - (void)showInfo:(id)sender
{
AboutViewController *aboutViewController = [[[AboutViewController alloc] initWithNibName:nil bundle:nil] autorelease];
UINavigationController *aboutNavController = [[[UINavigationController alloc] initWithRootViewController:aboutViewController] autorelease];

if ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) {
aboutNavController.modalPresentationStyle = UIModalPresentationFormSheet;
} else {
aboutNavController.modalTransitionStyle = UIModalTransitionStyleFlipHorizontal;
}
[self presentModalViewController:aboutNavController animated:YES];
}
Expand Down Expand Up @@ -194,11 +195,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
cell.textLabel.text = NSLocalizedString(@"Sales and Trends", nil);
cell.badgeCount = badge;
cell.imageView.image = [UIImage imageNamed:@"Sales.png"];
cell.imageView.highlightedImage = [UIImage as_tintedImageNamed:@"Sales.png" color:[UIColor whiteColor]];
} else if (indexPath.row == 1) {
cell.textLabel.text = NSLocalizedString(@"Account", nil);
cell.imageView.image = [UIImage imageNamed:@"Account.png"];
cell.imageView.highlightedImage = [UIImage as_tintedImageNamed:@"Account.png" color:[UIColor whiteColor]];
cell.badgeCount = 0;
}
return cell;
Expand Down
4 changes: 4 additions & 0 deletions Classes/AppSalesAppDelegate.m
Expand Up @@ -26,6 +26,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

srandom(time(NULL));
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.window.tintColor = [UIColor colorWithRed:0.28 green:0.51 blue:0.69 alpha:1.0];

NSString *currencyCode = [[NSLocale currentLocale] objectForKey:NSLocaleCurrencyCode];
if (![[CurrencyManager sharedManager].availableCurrencies containsObject:currencyCode]) {
Expand All @@ -44,6 +45,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
rootViewController.managedObjectContext = self.managedObjectContext;
UINavigationController *navigationController = [[[UINavigationController alloc] initWithRootViewController:rootViewController] autorelease];
navigationController.toolbarHidden = NO;
navigationController.navigationBar.translucent = NO;
self.accountsViewController = rootViewController;

self.window.rootViewController = navigationController;
Expand All @@ -54,6 +56,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
self.accountsViewController.contentSizeForViewInPopover = CGSizeMake(320, 480);
self.accountsViewController.delegate = self;
UINavigationController *accountsNavController = [[[UINavigationController alloc] initWithRootViewController:self.accountsViewController] autorelease];
accountsNavController.navigationBar.translucent = NO;
accountsNavController.toolbarHidden = NO;
self.accountsPopover = [[[UIPopoverController alloc] initWithContentViewController:accountsNavController] autorelease];
[self loadAccount:nil];
Expand Down Expand Up @@ -131,6 +134,7 @@ - (void)loadAccount:(ASAccount *)account
SalesViewController *salesVC = [[[SalesViewController alloc] initWithAccount:account] autorelease];
salesVC.navigationItem.leftBarButtonItem = selectAccountButtonItem;
UINavigationController *salesNavController = [[[UINavigationController alloc] initWithRootViewController:salesVC] autorelease];
salesNavController.navigationBar.translucent = NO;

self.window.rootViewController = salesNavController;
}
Expand Down
7 changes: 0 additions & 7 deletions Classes/BadgedCell.m
Expand Up @@ -19,27 +19,20 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
if (self) {
badgeView = [[UIImageView alloc] initWithFrame:CGRectMake(self.contentView.bounds.size.width - 32 - 10, self.contentView.bounds.size.height * 0.5 - 10, 32, 20)];
badgeView.image = [UIImage imageNamed:@"Badge.png"];
badgeView.highlightedImage = [UIImage as_tintedImageNamed:@"Badge.png" color:[UIColor whiteColor]];
badgeView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleBottomMargin;
badgeLabel = [[UILabel alloc] initWithFrame:CGRectInset(badgeView.bounds, 4, 0)];
badgeLabel.adjustsFontSizeToFitWidth = YES;
badgeLabel.backgroundColor = [UIColor clearColor];
badgeLabel.textColor = [UIColor whiteColor];
badgeLabel.textAlignment = UITextAlignmentCenter;
badgeLabel.font = [UIFont boldSystemFontOfSize:14.0];
badgeLabel.highlightedTextColor = [UIColor colorWithRed:0.008 green:0.435 blue:0.929 alpha:1.0];
[badgeView addSubview:badgeLabel];
badgeView.hidden = YES;
[self.contentView addSubview:badgeView];
}
return self;
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
}

- (void)setBadgeCount:(NSInteger)count
{
badgeCount = count;
Expand Down
16 changes: 2 additions & 14 deletions Classes/ColorButton.m
Expand Up @@ -16,24 +16,12 @@ @implementation ColorButton
- (void)drawRect:(CGRect)rect
{
if (!color) return;

UIBezierPath *roundRect = [UIBezierPath bezierPathWithRoundedRect:self.bounds cornerRadius:5.0];
UIBezierPath *innerRect = [UIBezierPath bezierPathWithRoundedRect:CGRectInset(self.bounds, 3, 3) cornerRadius:3];

if (self.highlighted) {
[[color colorByMultiplyingBy:0.5] set];
} else {
[(showOutline) ? [color colorByMultiplyingBy:0.75] : color set];
}
if (displayAsEllipse) {
CGContextFillEllipseInRect(UIGraphicsGetCurrentContext(), self.bounds);
[color set];
CGContextFillEllipseInRect(UIGraphicsGetCurrentContext(), CGRectInset(self.bounds, 3, 3));
} else {
[roundRect fill];
[color set];
[innerRect fill];
[color setFill];
}
UIRectFill(self.bounds);
}

- (void)setColor:(UIColor *)newColor
Expand Down
16 changes: 8 additions & 8 deletions Classes/DashboardAppCell.m
Expand Up @@ -25,11 +25,11 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
nameLabel = [[UILabel alloc] initWithFrame:CGRectMake(44, 10, contentSize.width - 49, 20)];
nameLabel.autoresizingMask = UIViewAutoresizingFlexibleWidth;
nameLabel.lineBreakMode = UILineBreakModeMiddleTruncation;
nameLabel.font = [UIFont boldSystemFontOfSize:16.0];
nameLabel.font = [UIFont systemFontOfSize:16.0];
nameLabel.backgroundColor = [UIColor clearColor];
nameLabel.shadowColor = [UIColor whiteColor];
nameLabel.highlightedTextColor = [UIColor whiteColor];
nameLabel.shadowOffset = CGSizeMake(0, 1);
//nameLabel.shadowColor = [UIColor whiteColor];
//nameLabel.highlightedTextColor = [UIColor whiteColor];
//nameLabel.shadowOffset = CGSizeMake(0, 1);

colorButton = [[ColorButton alloc] initWithFrame:CGRectMake(5, 5, 30, 30)];
colorButton.showOutline = NO;
Expand All @@ -40,8 +40,8 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
[self.contentView addSubview:iconView];
[self.contentView addSubview:nameLabel];

self.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CellBackground.png"]] autorelease];
self.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CellBackgroundSelected.png"]] autorelease];
//self.backgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CellBackground.png"]] autorelease];
//self.selectedBackgroundView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"CellBackgroundSelected.png"]] autorelease];
}
return self;
}
Expand Down Expand Up @@ -74,15 +74,15 @@ - (void)setHighlighted:(BOOL)highlighted animated:(BOOL)animated
[super setHighlighted:highlighted animated:animated];
colorButton.selected = NO;
colorButton.highlighted = NO;
nameLabel.shadowColor = (self.highlighted || self.selected) ? [UIColor blackColor] : [UIColor whiteColor];
//nameLabel.shadowColor = (self.highlighted || self.selected) ? [UIColor blackColor] : [UIColor whiteColor];
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated
{
[super setSelected:selected animated:animated];
colorButton.selected = NO;
colorButton.highlighted = NO;
nameLabel.shadowColor = (self.highlighted || self.selected) ? [UIColor blackColor] : [UIColor whiteColor];
//nameLabel.shadowColor = (self.highlighted || self.selected) ? [UIColor blackColor] : [UIColor whiteColor];
}

- (void)dealloc
Expand Down
31 changes: 7 additions & 24 deletions Classes/DashboardViewController.m
Expand Up @@ -89,42 +89,23 @@ - (void)loadView
BOOL iPad = ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad);

statusVisible = [self shouldShowStatusBar];
self.topView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"TopBackground.png"]] autorelease];
self.topView = [[[UIImageView alloc] initWithImage:[[UIImage imageNamed:@"TopBackground.png"] resizableImageWithCapInsets:UIEdgeInsetsMake(10, 10, 10, 10)]] autorelease];
topView.userInteractionEnabled = YES;
topView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
topView.frame = CGRectMake(0, 0, self.view.bounds.size.width, iPad ? 450.0 : (self.view.bounds.size.height - 44.0) * 0.5);
[self.view addSubview:topView];

UIImageView *graphShadowView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ShadowBottom.png"]] autorelease];
graphShadowView.frame = CGRectMake(0, CGRectGetMaxY(topView.bounds), topView.bounds.size.width, 20);
graphShadowView.autoresizingMask = UIViewAutoresizingFlexibleTopMargin | UIViewAutoresizingFlexibleWidth;
[topView addSubview:graphShadowView];

self.productsTableView = [[[UITableView alloc] initWithFrame:CGRectMake(0, CGRectGetMaxY(topView.frame), self.view.bounds.size.width, self.view.bounds.size.height - topView.bounds.size.height) style:UITableViewStylePlain] autorelease];
productsTableView.autoresizingMask = UIViewAutoresizingFlexibleHeight | UIViewAutoresizingFlexibleWidth;
productsTableView.separatorStyle = UITableViewCellSeparatorStyleNone;
productsTableView.dataSource = self;
productsTableView.delegate = self;
productsTableView.backgroundColor = [UIColor clearColor];

productsTableView.tableHeaderView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ShadowTop.png"]] autorelease];
productsTableView.tableFooterView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ShadowBottom.png"]] autorelease];
UIEdgeInsets productsTableContentInset = (statusVisible) ? UIEdgeInsetsMake(-20, 0, 24, 0) : UIEdgeInsetsMake(-20, 0, -20, 0);
UIEdgeInsets productsTableScrollIndicatorInset = (statusVisible) ? UIEdgeInsetsMake(0, 0, 44, 0) : UIEdgeInsetsMake(0, 0, 0, 0);
productsTableView.contentInset = productsTableContentInset;
productsTableView.scrollIndicatorInsets = productsTableScrollIndicatorInset;
productsTableView.allowsMultipleSelection = YES;

self.view.backgroundColor = [UIColor scrollViewTexturedBackgroundColor];
self.view.backgroundColor = [UIColor whiteColor];
[self.view addSubview:self.productsTableView];

self.shadowView = [[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"ShadowBottom.png"]] autorelease];
shadowView.frame = graphShadowView.frame;
shadowView.autoresizingMask = UIViewAutoresizingFlexibleWidth;
shadowView.alpha = 0.0;

[self.view addSubview:shadowView];

self.activityIndicator = [[[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhite] autorelease];
if (statusVisible) [activityIndicator startAnimating];
UIBarButtonItem *activityIndicatorItem = [[[UIBarButtonItem alloc] initWithCustomView:activityIndicator] autorelease];
Expand All @@ -133,8 +114,6 @@ - (void)loadView
statusLabel.font = [UIFont boldSystemFontOfSize:14.0];
statusLabel.backgroundColor = [UIColor clearColor];
statusLabel.textColor = [UIColor whiteColor];
statusLabel.shadowColor = [UIColor blackColor];
statusLabel.shadowOffset = CGSizeMake(0, -1);
statusLabel.textAlignment = UITextAlignmentCenter;

self.progressBar = [[[UIProgressView alloc] initWithFrame:CGRectMake(0, 25, 200, 10)] autorelease];
Expand All @@ -146,6 +125,7 @@ - (void)loadView
UIBarButtonItem *statusItem = [[[UIBarButtonItem alloc] initWithCustomView:statusView] autorelease];
UIBarButtonItem *flexSpace = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemFlexibleSpace target:nil action:nil] autorelease];
self.stopButtonItem = [[[UIBarButtonItem alloc] initWithBarButtonSystemItem:UIBarButtonSystemItemStop target:self action:@selector(stopDownload:)] autorelease];
self.stopButtonItem.tintColor = [UIColor whiteColor];

CGRect statusToolbarFrame = CGRectMake(0, self.view.bounds.size.height - ((statusVisible) ? 44 : 0), self.view.bounds.size.width, 44);
self.statusToolbar = [[[UIToolbar alloc] initWithFrame:statusToolbarFrame] autorelease];
Expand Down Expand Up @@ -198,7 +178,7 @@ - (void)showOrHideStatusBar
} else {
[self.activityIndicator stopAnimating];
}
UIEdgeInsets productsTableContentInset = (statusVisible) ? UIEdgeInsetsMake(-20, 0, 24, 0) : UIEdgeInsetsMake(-20, 0, -20, 0);
UIEdgeInsets productsTableContentInset = (statusVisible) ? UIEdgeInsetsMake(0, 0, 44, 0) : UIEdgeInsetsMake(0, 0, 0, 0);
UIEdgeInsets productsTableScrollIndicatorInset = (statusVisible) ? UIEdgeInsetsMake(0, 0, 44, 0) : UIEdgeInsetsMake(0, 0, 0, 0);
CGRect statusToolbarFrame = CGRectMake(0, self.view.bounds.size.height - ((statusVisible) ? 44 : 0), self.view.bounds.size.width, 44);
if (statusVisible) {
Expand Down Expand Up @@ -317,6 +297,9 @@ - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(N
if (!cell) {
cell = [[[DashboardAppCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:cellIdentifier] autorelease];
}
if ([cell respondsToSelector:@selector(setSeparatorInset:)]) {
[cell setSeparatorInset:UIEdgeInsetsMake(0, 44, 0, 8)];
}

Product *product = nil;
if (indexPath.row != 0) {
Expand Down
1 change: 0 additions & 1 deletion Classes/FieldEditorViewController.m
Expand Up @@ -225,7 +225,6 @@ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)ce
FieldSpecifier *field = [fields objectAtIndex:indexPath.row];
cell.textLabel.text = field.title;
cell.textLabel.textAlignment = UITextAlignmentLeft;
cell.textLabel.font = [UIFont boldSystemFontOfSize:16.0];
cell.accessoryType = UITableViewCellAccessoryNone;
CGSize labelSize = [field.title sizeWithFont:cell.textLabel.font];
CGRect textLabelFrame = CGRectMake(10, 0, labelSize.width, 10);
Expand Down
20 changes: 6 additions & 14 deletions Classes/GraphView.m
Expand Up @@ -26,7 +26,7 @@ - (id)initWithFrame:(CGRect)frameRect
cachedValues = [NSMutableDictionary new];

UIView *scaleBackgroundView = [[[UIView alloc] initWithFrame:CGRectMake(0, 0, 46, self.bounds.size.height - 30)] autorelease];
scaleBackgroundView.backgroundColor = [UIColor colorWithWhite:0.9 alpha:1.0];
scaleBackgroundView.backgroundColor = [UIColor colorWithWhite:0.95 alpha:1.0];
[self addSubview:scaleBackgroundView];

UIView *bottomLineView = [[[UIView alloc] initWithFrame:CGRectMake(46, self.bounds.size.height - 30, self.bounds.size.width - 46, 1)] autorelease];
Expand Down Expand Up @@ -58,19 +58,17 @@ - (id)initWithFrame:(CGRect)frameRect
[self addSubview:scrollView];

titleLabel = [[UILabel alloc] initWithFrame:CGRectMake(0, 4, self.bounds.size.width, 12)];
titleLabel.font = [UIFont boldSystemFontOfSize:11.0];
titleLabel.font = [UIFont systemFontOfSize:11.0];
titleLabel.textAlignment = UITextAlignmentCenter;
titleLabel.textColor = [UIColor grayColor];
titleLabel.backgroundColor = [UIColor clearColor];
titleLabel.shadowColor = [UIColor whiteColor];
titleLabel.shadowOffset = CGSizeMake(0, 1);
[self addSubview:titleLabel];

self.sectionLabelButton = [UIButton buttonWithType:UIButtonTypeCustom];
sectionLabelButton.autoresizingMask = UIViewAutoresizingFlexibleTopMargin;
[self.sectionLabelButton setBackgroundImage:[UIImage imageNamed:@"DateButton.png"] forState:UIControlStateNormal];
self.sectionLabelButton.frame = CGRectMake(0, self.bounds.size.height - 30 - 16, 46, 32);
self.sectionLabelButton.titleLabel.font = [UIFont boldSystemFontOfSize:10.0];
self.sectionLabelButton.titleLabel.font = [UIFont systemFontOfSize:10.0];
self.sectionLabelButton.titleLabel.adjustsFontSizeToFitWidth = YES;
[self.sectionLabelButton setTitleColor:[UIColor darkGrayColor] forState:UIControlStateNormal];
[self addSubview:self.sectionLabelButton];
Expand Down Expand Up @@ -348,10 +346,8 @@ - (void)scrollViewDidScroll:(UIScrollView *)aScrollView
dateLabel.autoresizingMask = UIViewAutoresizingFlexibleTopMargin;
dateLabel.backgroundColor = [UIColor clearColor];
dateLabel.textColor = [UIColor darkGrayColor];
dateLabel.shadowColor = [UIColor whiteColor];
dateLabel.shadowOffset = CGSizeMake(0, 1);
dateLabel.textAlignment = UITextAlignmentCenter;
dateLabel.font = [UIFont boldSystemFontOfSize:14.0];
dateLabel.font = [UIFont systemFontOfSize:14.0];
dateLabel.adjustsFontSizeToFitWidth = YES;
[barView addSubview:dateLabel];

Expand Down Expand Up @@ -455,12 +451,10 @@ - (id)initWithColors:(NSArray *)colorArray
}
label = [[UILabel alloc] initWithFrame:CGRectZero];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont boldSystemFontOfSize:12.0];
label.font = [UIFont systemFontOfSize:12.0];
label.adjustsFontSizeToFitWidth = YES;
label.textAlignment = UITextAlignmentCenter;
label.textColor = [UIColor darkGrayColor];
label.shadowColor = [UIColor whiteColor];
label.shadowOffset = CGSizeMake(0, 1);
[self addSubview:label];
}
return self;
Expand Down Expand Up @@ -684,10 +678,8 @@ - (id)initWithFrame:(CGRect)frameRect
self.backgroundColor = [UIColor colorWithWhite:0.75 alpha:1.0];
label = [[UILabel alloc] initWithFrame:CGRectMake(-40, -8, 40, 16)];
label.backgroundColor = [UIColor clearColor];
label.font = [UIFont boldSystemFontOfSize:12.0];
label.font = [UIFont systemFontOfSize:12.0];
label.textColor = [UIColor darkGrayColor];
label.shadowColor = [UIColor whiteColor];
label.shadowOffset = CGSizeMake(0, 1);
label.textAlignment = UITextAlignmentRight;
label.adjustsFontSizeToFitWidth = YES;
[self addSubview:label];
Expand Down

0 comments on commit 51aa7b0

Please sign in to comment.