GeezerVison is showing github.com — Move can focus from item to cell · zhmios/RETableViewManager@a07c0c2
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewCreditCardCell.m +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -46,6 +46,11 @@ @implementation RETableViewCreditCardCell |
46 | 46 | return nil; |
47 | 47 | } |
48 | 48 |
|
| 49 | ++ (BOOL)canFocus |
| 50 | +{ |
| 51 | + return YES; |
| 52 | +} |
| 53 | + |
49 | 54 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier |
50 | 55 | { |
51 | 56 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewDateTimeCell.m +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
11 | 11 |
|
12 | 12 | @implementation RETableViewDateTimeCell |
13 | 13 |
|
| 14 | ++ (BOOL)canFocus |
| 15 | +{ |
| 16 | + return YES; |
| 17 | +} |
| 18 | + |
14 | 19 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier |
15 | 20 | { |
16 | 21 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewFloatCell.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -36,7 +36,7 @@ - (void)cellWillAppear |
36 | 36 | } |
37 | 37 |
|
38 | 38 | #pragma mark - |
39 | | -#pragma mark UISwitch events |
| 39 | +#pragma mark Handle events |
40 | 40 |
|
41 | 41 | - (void)sliderValueDidChange:(UISlider *)slider |
42 | 42 | { |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewNumberCell.m +11Lines changed: 11 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
11 | 11 |
|
12 | 12 | @implementation RETableViewNumberCell |
13 | 13 |
|
| 14 | ++ (BOOL)canFocus |
| 15 | +{ |
| 16 | + return YES; |
| 17 | +} |
| 18 | + |
| 19 | +#pragma mark - |
| 20 | +#pragma mark Lifecycle |
| 21 | + |
14 | 22 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier |
15 | 23 | { |
16 | 24 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; |
@@ -47,6 +55,9 @@ - (void)cellWillAppear |
47 | 55 | self.textField.keyboardType = UIKeyboardTypeNumberPad; |
48 | 56 | } |
49 | 57 |
|
| 58 | +#pragma mark - |
| 59 | +#pragma mark Handle events |
| 60 | + |
50 | 61 | - (void)textFieldDidChange:(REFormattedNumberField *)textField |
51 | 62 | { |
52 | 63 | self.item.value = textField.unformattedText; |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewTextCell.m +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
28 | 28 |
|
29 | 29 | @implementation RETableViewTextCell |
30 | 30 |
|
| 31 | ++ (BOOL)canFocus |
| 32 | +{ |
| 33 | + return YES; |
| 34 | +} |
| 35 | + |
31 | 36 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier |
32 | 37 | { |
33 | 38 | self = [super initWithStyle:style reuseIdentifier:reuseIdentifier]; |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Items/RECreditCardItem.m -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -45,9 +45,4 @@ - (id)initWithNumber:(NSString *)number expirationDate:(NSString *)expirationDat |
45 | 45 | return self; |
46 | 46 | } |
47 | 47 |
|
48 | | -- (BOOL)canFocus |
49 | | -{ |
50 | | - return YES; |
51 | | -} |
52 | | - |
53 | 48 | @end |
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Items/REDateTimeItem.m -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -40,9 +40,4 @@ - (id)initWithTitle:(NSString *)title value:(NSDate *)value format:(NSString *)f |
40 | 40 | return self; |
41 | 41 | } |
42 | 42 |
|
43 | | -- (BOOL)canFocus |
44 | | -{ |
45 | | - return YES; |
46 | | -} |
47 | | - |
48 | 43 | @end |
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Items/RENumberItem.m -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -46,9 +46,4 @@ - (id)initWithTitle:(NSString *)title value:(NSString *)value placeholder:(NSStr |
46 | 46 | return self; |
47 | 47 | } |
48 | 48 |
|
49 | | -- (BOOL)canFocus |
50 | | -{ |
51 | | - return YES; |
52 | | -} |
53 | | - |
54 | 49 | @end |
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Items/RETextItem.m -5Lines changed: 0 additions & 5 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,9 +55,4 @@ - (id)initWithTitle:(NSString *)title value:(NSString *)value placeholder:(NSStr |
55 | 55 | return self; |
56 | 56 | } |
57 | 57 |
|
58 | | -- (BOOL)canFocus |
59 | | -{ |
60 | | - return YES; |
61 | | -} |
62 | | - |
63 | 58 | @end |
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/RETableViewCell.h +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
42 | 42 | @property (strong, readwrite, nonatomic) RETableViewItem *item; |
43 | 43 | @property (strong, readwrite, nonatomic) REActionBar *actionBar; |
44 | 44 |
|
| 45 | ++ (BOOL)canFocus; |
45 | 46 | + (CGFloat)heightWithItem:(NSObject *)item tableViewManager:(RETableViewManager *)tableViewManager; |
46 | 47 |
|
47 | 48 | - (void)cellDidLoad; |
|