标签:set pre confirm table ble eva xpath edit suse
//侧滑
-(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];
}
标签:set pre confirm table ble eva xpath edit suse
原文地址:http://www.cnblogs.com/linfeifei/p/7095618.html