Permalink
Browse files

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

  • Loading branch information...
1 parent 03aac55 commit 3e6eccf80ab62f5276083878b7851c6353b2f25d @jverkoey committed Oct 3, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 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;

0 comments on commit 3e6eccf

Please sign in to comment.