//側(cè)滑
-(NSArray)tableView:(UITableView)tableView editActionsForRowAtIndexPath:(NSIndexPath)indexPath{
//確認訂單
UITableViewRowActionconfirmOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@" " handler:^(UITableViewRowActionaction, NSIndexPath *indexPath) {
//自己需要實現(xiàn)的其他功能
}];
//取消訂單
UITableViewRowAction *cancelOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"? ? ? "handler:^(UITableViewRowAction *action,NSIndexPath*indexPath) {
//自己需要實現(xiàn)的其他功能
}];
//評價UITableViewRowAction *evaluateOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"? ? ? "handler:^(UITableViewRowAction *action,NSIndexPath*indexPath) {
//自己需要實現(xiàn)的其他功能
}];
//查看訂單
UITableViewRowAction *seeOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDefault title:@"? ? ? "handler:^(UITableViewRowAction *action,NSIndexPath*indexPath) {
//自己需要實現(xiàn)的其他功能
}];
return@[seeOrder,evaluateOrder,cancelOrder,confirmOrder];
}