//侧滑-(NSArray )tableView:(UITableView )tableView editActionsForRowAtIndexPath:(NSIndexPath )indexPath{NSStringindexPathRow = [NSString stringWithFormat:@"%ld",(long)indexPath.row];[[NSUserDefaults standardUserDefaults]setObject:indexPathRow forKey:@"indexPathRow"];//确认订单UITableViewRowAction confirmOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@" " handler:^(UITableViewRowAction action, NSIndexPath *indexPath) {
//自己需要实现的其他功能 }]; //取消订单 UITableViewRowAction *cancelOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { //自己需要实现的其他功能 }]; //评价 UITableViewRowAction *evaluateOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { //自己需要实现的其他功能 }]; //查看订单 UITableViewRowAction *seeOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@" " handler:^(UITableViewRowAction *action, NSIndexPath *indexPath) { //自己需要实现的其他功能 }]; return @[seeOrder,evaluateOrder,cancelOrder,confirmOrder];}
转载于:https://www.cnblogs.com/linfeifei/p/7095618.html
相关资源:ios UITableView 自定义右滑删除的实现代码