GeezerVison is showing github.com — Bugfixes for action bar · zhmios/RETableViewManager@43b84f5
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/RETableViewNumberCell.m +1Lines changed: 1 addition & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -85,6 +85,7 @@ - (void)textFieldDidChange:(UITextField *)textField |
85 | 85 |
|
86 | 86 | - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField |
87 | 87 | { |
| 88 | + [self refreshActionBar]; |
88 | 89 | [self.parentTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.row inSection:self.sectionIndex] atScrollPosition:UITableViewScrollPositionTop animated:YES]; |
89 | 90 | return YES; |
90 | 91 | } |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/Cells/RETableViewTextCell.m +1-1Lines changed: 1 addition & 1 deletion | Original file line number | Diff line number | Diff line change |
|---|
@@ -114,7 +114,7 @@ - (BOOL)textFieldShouldBeginEditing:(UITextField *)textField |
114 | 114 | } else { |
115 | 115 | textField.returnKeyType = UIReturnKeyDefault; |
116 | 116 | } |
117 | | - |
| 117 | + [self refreshActionBar]; |
118 | 118 | [self.parentTableView scrollToRowAtIndexPath:[NSIndexPath indexPathForRow:self.row inSection:self.sectionIndex] atScrollPosition:UITableViewScrollPositionTop animated:YES]; |
119 | 119 | return YES; |
120 | 120 | } |
|
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 |
|---|
|
44 | 44 |
|
45 | 45 | - (id)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier tableViewManager:(RETableViewManager *)tableViewManager; |
46 | 46 | - (void)prepare; |
| 47 | +- (void)refreshActionBar; |
47 | 48 |
|
48 | 49 | - (UIResponder *)responder; |
49 | 50 | - (NSIndexPath *)indexPathForPreviousResponder; |
|
Collapse file
Copy file name to clipboardExpand all lines: RETableViewManager/RETableViewCell.m +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -55,6 +55,11 @@ + (CGFloat)heightWithItem:(NSObject *)item tableViewManager:(RETableViewManager |
55 | 55 | } |
56 | 56 |
|
57 | 57 | - (void)prepare |
| 58 | +{ |
| 59 | + [self refreshActionBar]; |
| 60 | +} |
| 61 | + |
| 62 | +- (void)refreshActionBar |
58 | 63 | { |
59 | 64 | [self.actionBar.navigationControl setEnabled:[self indexPathForPreviousResponder] != nil forSegmentAtIndex:0]; |
60 | 65 | [self.actionBar.navigationControl setEnabled:[self indexPathForNextResponder] != nil forSegmentAtIndex:1]; |
|