|
@@ -670,12 +670,22 @@
|
|
|
cell.leftButtons = @[[MGSwipeButton buttonWithTitle:[NSString stringWithFormat:@" %@ ", NSLocalizedString(@"_unfavorite_", nil)] icon:[UIImage imageNamed:@"swipeUnfavorite"] backgroundColor:[UIColor colorWithRed:242.0/255.0 green:220.0/255.0 blue:132.0/255.0 alpha:1.000]]];
|
|
|
cell.leftExpansion.buttonIndex = 0;
|
|
|
cell.leftExpansion.fillOnTrigger = NO;
|
|
|
+
|
|
|
+ //centerIconOverText
|
|
|
+ MGSwipeButton *favoriteButton = (MGSwipeButton *)[cell.leftButtons objectAtIndex:0];
|
|
|
+ [favoriteButton centerIconOverText];
|
|
|
}
|
|
|
|
|
|
//configure right buttons
|
|
|
cell.rightButtons = @[[MGSwipeButton buttonWithTitle:[NSString stringWithFormat:@" %@ ", NSLocalizedString(@"_delete_", nil)] icon:[UIImage imageNamed:@"swipeDelete"] backgroundColor:[UIColor redColor]], [MGSwipeButton buttonWithTitle:[NSString stringWithFormat:@" %@ ", NSLocalizedString(@"_more_", nil)] icon:[UIImage imageNamed:@"swipeMore"] backgroundColor:[UIColor lightGrayColor]]];
|
|
|
cell.rightSwipeSettings.transition = MGSwipeTransitionBorder;
|
|
|
|
|
|
+ //centerIconOverText
|
|
|
+ MGSwipeButton *deleteButton = (MGSwipeButton *)[cell.rightButtons objectAtIndex:0];
|
|
|
+ MGSwipeButton *moreButton = (MGSwipeButton *)[cell.rightButtons objectAtIndex:1];
|
|
|
+ [deleteButton centerIconOverText];
|
|
|
+ [moreButton centerIconOverText];
|
|
|
+
|
|
|
return cell;
|
|
|
}
|
|
|
|