Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[models] Don't modify the cell accessory type for tap actions.

  • Loading branch information...
commit 3e6eccf80ab62f5276083878b7851c6353b2f25d 1 parent 03aac55
@jverkoey authored
Showing with 2 additions and 5 deletions.
  1. +2 −5 src/models/src/NITableViewActions.m
View
7 src/models/src/NITableViewActions.m
@@ -268,18 +268,15 @@ - (void)tableView:(UITableView *)tableView willDisplayCell:(UITableViewCell *)ce
if ([self isObjectActionable:object]) {
NITableViewAction* action = [self actionForObjectOrClassOfObject:object];
- UITableViewCellAccessoryType accessoryType = UITableViewCellAccessoryNone;
// Detail disclosure indicator takes precedence over regular disclosure indicator.
if (nil != action.detailAction) {
- accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
+ cell.accessoryType = UITableViewCellAccessoryDetailDisclosureButton;
} else if (nil != action.navigateAction) {
- accessoryType = UITableViewCellAccessoryDisclosureIndicator;
+ cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator;
}
- cell.accessoryType = accessoryType;
-
// If the cell is tappable, reflect that in the selection style.
if (action.navigateAction || action.tapAction) {
cell.selectionStyle = self.tableViewCellSelectionStyle;
Please sign in to comment.
Something went wrong with that request. Please try again.