Skip to content

Commit

Permalink
Ugly progress on #21. This is needs major refactoring.
Browse files Browse the repository at this point in the history
  • Loading branch information
soffes committed Jul 31, 2012
1 parent 0ac01da commit fec4661
Show file tree
Hide file tree
Showing 24 changed files with 105 additions and 53 deletions.
16 changes: 16 additions & 0 deletions Cheddar for iOS.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -182,6 +182,10 @@
B29011BF15C4D247008FC626 /* stop-button-mini.png in Resources */ = {isa = PBXBuildFile; fileRef = B29011B315C4D247008FC626 /* stop-button-mini.png */; };
B29011C015C4D247008FC626 /* stop-button-mini@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B29011B415C4D247008FC626 /* stop-button-mini@2x.png */; };
B29011CE15C505DA008FC626 /* CDISettingsTableViewCell.m in Sources */ = {isa = PBXBuildFile; fileRef = B29011CD15C505DA008FC626 /* CDISettingsTableViewCell.m */; };
B296A76A15C7B610006137C7 /* cell-checkmark@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B296A76615C7B610006137C7 /* cell-checkmark@2x.png */; };
B296A76D15C7B6BB006137C7 /* cell-checkmark-highlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = B296A76B15C7B6BB006137C7 /* cell-checkmark-highlighted.png */; };
B296A76E15C7B6BB006137C7 /* cell-checkmark-highlighted@2x.png in Resources */ = {isa = PBXBuildFile; fileRef = B296A76C15C7B6BB006137C7 /* cell-checkmark-highlighted@2x.png */; };
B296A77015C7B7CF006137C7 /* cell-checkmark.png in Resources */ = {isa = PBXBuildFile; fileRef = B296A76F15C7B7CF006137C7 /* cell-checkmark.png */; };
B2A2B07B15C0BE7300772CF6 /* CDKTask+CheddariOSAdditions.m in Sources */ = {isa = PBXBuildFile; fileRef = B2A2B07A15C0BE7300772CF6 /* CDKTask+CheddariOSAdditions.m */; };
B2AD02E315C46F7300D9B909 /* nav-back-mini-highlighted.png in Resources */ = {isa = PBXBuildFile; fileRef = B2AD02DF15C46F7300D9B909 /* nav-back-mini-highlighted.png */; };
B2AD02E415C46F7300D9B909 /* nav-back-mini.png in Resources */ = {isa = PBXBuildFile; fileRef = B2AD02E015C46F7300D9B909 /* nav-back-mini.png */; };
Expand Down Expand Up @@ -485,6 +489,10 @@
B29011B415C4D247008FC626 /* stop-button-mini@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "stop-button-mini@2x.png"; sourceTree = "<group>"; };
B29011CC15C505DA008FC626 /* CDISettingsTableViewCell.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = CDISettingsTableViewCell.h; sourceTree = "<group>"; };
B29011CD15C505DA008FC626 /* CDISettingsTableViewCell.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = CDISettingsTableViewCell.m; sourceTree = "<group>"; };
B296A76615C7B610006137C7 /* cell-checkmark@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cell-checkmark@2x.png"; sourceTree = "<group>"; };
B296A76B15C7B6BB006137C7 /* cell-checkmark-highlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cell-checkmark-highlighted.png"; sourceTree = "<group>"; };
B296A76C15C7B6BB006137C7 /* cell-checkmark-highlighted@2x.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cell-checkmark-highlighted@2x.png"; sourceTree = "<group>"; };
B296A76F15C7B7CF006137C7 /* cell-checkmark.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "cell-checkmark.png"; sourceTree = "<group>"; };
B2A2B07915C0BE7300772CF6 /* CDKTask+CheddariOSAdditions.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "CDKTask+CheddariOSAdditions.h"; sourceTree = "<group>"; };
B2A2B07A15C0BE7300772CF6 /* CDKTask+CheddariOSAdditions.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = "CDKTask+CheddariOSAdditions.m"; sourceTree = "<group>"; };
B2AD02DF15C46F7300D9B909 /* nav-back-mini-highlighted.png */ = {isa = PBXFileReference; lastKnownFileType = image.png; path = "nav-back-mini-highlighted.png"; sourceTree = "<group>"; };
Expand Down Expand Up @@ -571,6 +579,10 @@
B208BBD615BF63A80080705D /* Images */ = {
isa = PBXGroup;
children = (
B296A76B15C7B6BB006137C7 /* cell-checkmark-highlighted.png */,
B296A76C15C7B6BB006137C7 /* cell-checkmark-highlighted@2x.png */,
B296A76615C7B610006137C7 /* cell-checkmark@2x.png */,
B296A76F15C7B7CF006137C7 /* cell-checkmark.png */,
B29011A915C4D247008FC626 /* action-button-mini.png */,
B29011AA15C4D247008FC626 /* action-button-mini@2x.png */,
B29011AB15C4D247008FC626 /* back-button-mini.png */,
Expand Down Expand Up @@ -1254,6 +1266,10 @@
B29011BE15C4D247008FC626 /* safari-button-mini@2x.png in Resources */,
B29011BF15C4D247008FC626 /* stop-button-mini.png in Resources */,
B29011C015C4D247008FC626 /* stop-button-mini@2x.png in Resources */,
B296A76A15C7B610006137C7 /* cell-checkmark@2x.png in Resources */,
B296A76D15C7B6BB006137C7 /* cell-checkmark-highlighted.png in Resources */,
B296A76E15C7B6BB006137C7 /* cell-checkmark-highlighted@2x.png in Resources */,
B296A77015C7B7CF006137C7 /* cell-checkmark.png in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand Down
2 changes: 1 addition & 1 deletion Classes/CDIAddListTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reus
[self.contentView addSubview:_textField];

_closeButton = [[UIButton alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 40.0f, 51.0f)];
[_closeButton setImage:[UIImage imageNamed:@"x.png"] forState:UIControlStateNormal];
[_closeButton setImage:[UIImage imageNamed:@"x"] forState:UIControlStateNormal];
self.accessoryView = _closeButton;
}
return self;
Expand Down
2 changes: 1 addition & 1 deletion Classes/CDIAddTaskAnimationView.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ - (void)animationToPoint:(CGPoint)point height:(CGFloat)height insertTask:(void(
[container addSubview:background];

// Checkbox
UIImageView *checkbox = [[UIImageView alloc] initWithImage:[[UIImage imageNamed:@"checkbox.png"] stretchableImageWithLeftCapWidth:4 topCapHeight:4]];
UIImageView *checkbox = [[UIImageView alloc] initWithImage:[[UIImage imageNamed:@"checkbox"] stretchableImageWithLeftCapWidth:4 topCapHeight:4]];
checkbox.frame = CGRectMake(-34.0f, 13.0f, 24.0f, 24.0f);
[background addSubview:checkbox];

Expand Down
6 changes: 3 additions & 3 deletions Classes/CDIAddTaskView.m
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ - (id)initWithFrame:(CGRect)frame {

_textField = [[SSTextField alloc] initWithFrame:CGRectZero];
_textField.delegate = self;
_textField.background = [[UIImage imageNamed:@"textfield.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];
_textField.background = [[UIImage imageNamed:@"textfield"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];
_textField.textEdgeInsets = UIEdgeInsetsMake(0.0f, 13.0f, 0.0f, 13.0f);
_textField.autocapitalizationType = UITextAutocapitalizationTypeSentences;
_textField.autocorrectionType = UITextAutocorrectionTypeYes;
Expand Down Expand Up @@ -285,7 +285,7 @@ - (void)_closeTags {
#pragma mark - UITextFieldDelegate

- (void)textFieldDidBeginEditing:(UITextField *)textField {
_textField.background = [[UIImage imageNamed:@"textfield-focused.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];
_textField.background = [[UIImage imageNamed:@"textfield-focused"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];

if ([self.delegate respondsToSelector:@selector(addTaskViewDidBeginEditing:)]) {
[self.delegate addTaskViewDidBeginEditing:self];
Expand All @@ -294,7 +294,7 @@ - (void)textFieldDidBeginEditing:(UITextField *)textField {


- (void)textFieldDidEndEditing:(UITextField *)textField {
_textField.background = [[UIImage imageNamed:@"textfield.png"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];
_textField.background = [[UIImage imageNamed:@"textfield"] stretchableImageWithLeftCapWidth:8 topCapHeight:0];

if ([self.delegate respondsToSelector:@selector(addTaskViewDidEndEditing:)]) {
[self.delegate addTaskViewDidEndEditing:self];
Expand Down
34 changes: 20 additions & 14 deletions Classes/CDIAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,12 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(

// Add the transaction observer
[[SKPaymentQueue defaultQueue] addTransactionObserver:[CDITransactionObserver defaultObserver]];

// Default defaults
NSDictionary *defaults = [[NSDictionary alloc] initWithObjectsAndKeys:
@"complete", @"CDISettingTapAction",
nil];
[[NSUserDefaults standardUserDefaults] registerDefaults:defaults];
});

return YES;
Expand Down Expand Up @@ -106,7 +112,7 @@ - (void)applicationWillTerminate:(UIApplication *)application {
+ (void)applyStylesheet {
// Navigation bar
UINavigationBar *navigationBar = [UINavigationBar appearance];
[navigationBar setBackgroundImage:[UIImage imageNamed:@"nav-background.png"] forBarMetrics:UIBarMetricsDefault];
[navigationBar setBackgroundImage:[UIImage imageNamed:@"nav-background"] forBarMetrics:UIBarMetricsDefault];
[navigationBar setTitleVerticalPositionAdjustment:-1.0f forBarMetrics:UIBarMetricsDefault];
[navigationBar setTitleTextAttributes:[[NSDictionary alloc] initWithObjectsAndKeys:
[UIFont cheddarFontOfSize:20.0f], UITextAttributeFont,
Expand All @@ -117,7 +123,7 @@ + (void)applyStylesheet {

// Navigation bar mini
[navigationBar setTitleVerticalPositionAdjustment:-2.0f forBarMetrics:UIBarMetricsLandscapePhone];
[navigationBar setBackgroundImage:[UIImage imageNamed:@"nav-background-mini.png"] forBarMetrics:UIBarMetricsLandscapePhone];
[navigationBar setBackgroundImage:[UIImage imageNamed:@"nav-background-mini"] forBarMetrics:UIBarMetricsLandscapePhone];

// Navigation button
NSDictionary *barButtonTitleTextAttributes = [[NSDictionary alloc] initWithObjectsAndKeys:
Expand All @@ -129,32 +135,32 @@ + (void)applyStylesheet {
[barButton setTitlePositionAdjustment:UIOffsetMake(0.0f, 1.0f) forBarMetrics:UIBarMetricsDefault];
[barButton setTitleTextAttributes:barButtonTitleTextAttributes forState:UIControlStateNormal];
[barButton setTitleTextAttributes:barButtonTitleTextAttributes forState:UIControlStateHighlighted];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button.png"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-highlighted.png"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-highlighted"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];

// Navigation back button
[barButton setBackButtonTitlePositionAdjustment:UIOffsetMake(1.0f, -2.0f) forBarMetrics:UIBarMetricsDefault];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back.png"] stretchableImageWithLeftCapWidth:13 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-highlighted.png"] stretchableImageWithLeftCapWidth:13 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back"] stretchableImageWithLeftCapWidth:13 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsDefault];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-highlighted"] stretchableImageWithLeftCapWidth:13 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsDefault];

// Navigation button mini
[barButton setTitlePositionAdjustment:UIOffsetMake(0.0f, 1.0f) forBarMetrics:UIBarMetricsLandscapePhone];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-mini.png"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-mini-highlighted.png"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-mini"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackgroundImage:[[UIImage imageNamed:@"nav-button-mini-highlighted"] stretchableImageWithLeftCapWidth:6 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsLandscapePhone];

// Navigation back button mini
[barButton setBackButtonTitlePositionAdjustment:UIOffsetMake(1.0f, -2.0f) forBarMetrics:UIBarMetricsLandscapePhone];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-mini.png"] stretchableImageWithLeftCapWidth:10 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-mini-highlighted.png"] stretchableImageWithLeftCapWidth:10 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-mini"] stretchableImageWithLeftCapWidth:10 topCapHeight:0] forState:UIControlStateNormal barMetrics:UIBarMetricsLandscapePhone];
[barButton setBackButtonBackgroundImage:[[UIImage imageNamed:@"nav-back-mini-highlighted"] stretchableImageWithLeftCapWidth:10 topCapHeight:0] forState:UIControlStateHighlighted barMetrics:UIBarMetricsLandscapePhone];

// Toolbar
UIToolbar *toolbar = [UIToolbar appearance];
[toolbar setBackgroundImage:[UIImage imageNamed:@"navigation-background.png"] forToolbarPosition:UIToolbarPositionTop barMetrics:UIBarMetricsDefault];
[toolbar setBackgroundImage:[UIImage imageNamed:@"toolbar-background.png"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsDefault];
[toolbar setBackgroundImage:[UIImage imageNamed:@"navigation-background"] forToolbarPosition:UIToolbarPositionTop barMetrics:UIBarMetricsDefault];
[toolbar setBackgroundImage:[UIImage imageNamed:@"toolbar-background"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsDefault];

// Toolbar mini
[toolbar setBackgroundImage:[UIImage imageNamed:@"navigation-background-mini.png"] forToolbarPosition:UIToolbarPositionTop barMetrics:UIBarMetricsLandscapePhone];
[toolbar setBackgroundImage:[UIImage imageNamed:@"toolbar-background-mini.png"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsLandscapePhone];
[toolbar setBackgroundImage:[UIImage imageNamed:@"navigation-background-mini"] forToolbarPosition:UIToolbarPositionTop barMetrics:UIBarMetricsLandscapePhone];
[toolbar setBackgroundImage:[UIImage imageNamed:@"toolbar-background-mini"] forToolbarPosition:UIToolbarPositionBottom barMetrics:UIBarMetricsLandscapePhone];
}

@end
4 changes: 2 additions & 2 deletions Classes/CDIListTableViewCell.m
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ - (void)setEditingText:(BOOL)editingText {
- (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
if ((self = [super initWithStyle:style reuseIdentifier:reuseIdentifier])) {
UIImageView *disclosureImageView = [[UIImageView alloc] initWithFrame:CGRectMake(0.0f, 0.0f, 10.0f, 15.0f)];
disclosureImageView.image = [UIImage imageNamed:@"disclosure.png"];
disclosureImageView.image = [UIImage imageNamed:@"disclosure"];
self.accessoryView = disclosureImageView;

disclosureImageView.highlightedImage = [UIImage imageNamed:@"disclosure-highlighted.png"];
disclosureImageView.highlightedImage = [UIImage imageNamed:@"disclosure-highlighted"];
SSGradientView *selectedBackground = [[SSGradientView alloc] initWithFrame:CGRectZero];
selectedBackground.colors = [[NSArray alloc] initWithObjects:
[UIColor colorWithRed:0.0f green:0.722f blue:0.918f alpha:1.0f],
Expand Down
8 changes: 4 additions & 4 deletions Classes/CDIListsViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ - (void)dealloc {

- (void)viewDidLoad {
[super viewDidLoad];
UIImageView *title = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"nav-title.png"]];
UIImageView *title = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"nav-title"]];
title.frame = CGRectMake(0.0f, 0.0f, 116.0f, 21.0f);
self.navigationItem.titleView = title;
self.navigationItem.backBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Lists" style:UIBarButtonItemStyleBordered target:nil action:nil];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];

[self setEditing:NO animated:NO];

Expand Down Expand Up @@ -114,7 +114,7 @@ - (void)setEditing:(BOOL)editing animated:(BOOL)animated {
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Settings" style:UIBarButtonItemStyleBordered target:self action:@selector(showSettings:)];
} else {
self.navigationItem.leftBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"Edit" style:UIBarButtonItemStyleBordered target:self action:@selector(toggleEditMode:)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];
}

if (!editing && UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) {
Expand Down Expand Up @@ -330,7 +330,7 @@ - (void)_cancelAddingList:(id)sender {
}

[self.tableView deleteRowsAtIndexPaths:[NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]] withRowAnimation:UITableViewRowAnimationTop];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus.png"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];
self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"plus"] style:UIBarButtonItemStyleBordered target:self action:@selector(createList:)];
[self setEditing:NO animated:NO];
[self hideCoverView];
[self updatePlaceholderViews:YES];
Expand Down
4 changes: 2 additions & 2 deletions Classes/CDINoListsView.m
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ - (id)initWithFrame:(CGRect)frame {
self.userInteractionEnabled = NO;

UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(115.0f, 106.0f, 90.0f, 110.0f)];
imageView.image = [UIImage imageNamed:@"list-icon.png"];
imageView.image = [UIImage imageNamed:@"list-icon"];
[self addSubview:imageView];

UILabel *label = [[UILabel alloc] initWithFrame:CGRectMake(20.0f, 230.0f, 280.0f, 60.0f)];
Expand All @@ -34,7 +34,7 @@ - (id)initWithFrame:(CGRect)frame {
CGFloat offset = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? 2.0f : 0.0f;

imageView = [[UIImageView alloc] initWithFrame:CGRectMake(272.0f - offset, 5.0f, 34.0f, 40.0f)];
imageView.image = [UIImage imageNamed:@"add-list-arrow.png"];
imageView.image = [UIImage imageNamed:@"add-list-arrow"];
[self addSubview:imageView];

label = [[UILabel alloc] initWithFrame:CGRectMake(200.0f - offset, 30.0f, 75.0f, 22.0f)];
Expand Down
4 changes: 2 additions & 2 deletions Classes/CDINoTasksView.m
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ - (id)initWithFrame:(CGRect)frame {
self.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight;

UIImageView *imageView = [[UIImageView alloc] initWithFrame:CGRectMake(roundf((frame.size.width - 108.0f) / 2.0f), 136.0f, 108.0f, 83.0f)];
imageView.image = [UIImage imageNamed:@"task-icon.png"];
imageView.image = [UIImage imageNamed:@"task-icon"];
imageView.autoresizingMask = UIViewAutoresizingFlexibleLeftMargin | UIViewAutoresizingFlexibleRightMargin | UIViewAutoresizingFlexibleBottomMargin;
[self addSubview:imageView];

Expand All @@ -37,7 +37,7 @@ - (id)initWithFrame:(CGRect)frame {
CGFloat offset = UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad ? 2.0f : 0.0f;

imageView = [[UIImageView alloc] initWithFrame:CGRectMake(13.0f + offset, 56.0f, 34.0f, 40.0f)];
imageView.image = [UIImage imageNamed:@"add-task-arrow.png"];
imageView.image = [UIImage imageNamed:@"add-task-arrow"];
[self addSubview:imageView];

label = [[UILabel alloc] initWithFrame:CGRectMake(41.0f + offset, 80.0f, 85.0f, 22.0f)];
Expand Down
Loading

0 comments on commit fec4661

Please sign in to comment.