This repository has been archived by the owner on Mar 31, 2020. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Make the checkbox toggle completion no matter what
- Loading branch information
Showing
10 changed files
with
101 additions
and
35 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// | ||
// CDICheckboxButton.h | ||
// Cheddar for iOS | ||
// | ||
// Created by Sam Soffes on 9/3/12. | ||
// Copyright (c) 2012 Nothing Magical. All rights reserved. | ||
// | ||
|
||
@interface CDICheckboxButton : UIButton | ||
|
||
// We need a reference to the table view cell so the action action get the index path by passing the table view cell to | ||
// the table view. | ||
@property (nonatomic, weak) UITableViewCell *tableViewCell; | ||
|
||
@end |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
// | ||
// CDICheckboxButton.m | ||
// Cheddar for iOS | ||
// | ||
// Created by Sam Soffes on 9/3/12. | ||
// Copyright (c) 2012 Nothing Magical. All rights reserved. | ||
// | ||
|
||
#import "CDICheckboxButton.h" | ||
|
||
@implementation CDICheckboxButton | ||
|
||
@synthesize tableViewCell = _tableViewCell; | ||
|
||
- (id)initWithFrame:(CGRect)frame { | ||
if ((self = [super initWithFrame:frame])) { | ||
self.adjustsImageWhenHighlighted = NO; | ||
[self setBackgroundImage:[[UIImage imageNamed:@"checkbox"] stretchableImageWithLeftCapWidth:4 topCapHeight:4] forState:UIControlStateNormal]; | ||
} | ||
return self; | ||
} | ||
|
||
@end |
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
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
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
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
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
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
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