美文网首页
UITableView侧滑效果(1)

UITableView侧滑效果(1)

作者: 小飞飞啊阿飞 | 来源:发表于2017-06-29 17:33 被阅读55次

//侧滑

-(NSArray)tableView:(UITableView)tableView editActionsForRowAtIndexPath:(NSIndexPath)indexPath{

//确认订单

UITableViewRowActionconfirmOrder = [UITableViewRowAction rowActionWithStyle:UITableViewRowActionStyleDestructive title:@" " handler:^(UITableViewRowActionaction, 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];

}

相关文章

网友评论

      本文标题:UITableView侧滑效果(1)

      本文链接:https://www.haomeiwen.com/subject/xdqvcxtx.html