首页 > 其他 > 详细

UITableView侧滑效果(1)

时间:2017-06-29 19:02:54      阅读:294      评论:0      收藏:0      [点我收藏+]

//侧滑
-(NSArray )tableView:(UITableView )tableView editActionsForRowAtIndexPath:(NSIndexPath )indexPath{
NSString
indexPathRow = [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];

}技术分享

UITableView侧滑效果(1)

原文:http://www.cnblogs.com/linfeifei/p/7095618.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!