IOS_修改TableView的删除按钮的文本
时间:2014-08-22 10:36:06
收藏:0
阅读:374
-(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath
{
return UITableViewCellEditingStyleDelete;
}
- (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath
{
if (editingStyle == UITableViewCellEditingStyleDelete) {
NSLog(@"jiujsaifsdfasdffsda");
}
}
-(NSString *)tableView:(UITableView *)tableView titleForDeleteConfirmationButtonForRowAtIndexPath:(NSIndexPath *)indexPath {
return @"编辑";
}
IOS_修改TableView的删除按钮的文本,布布扣,bubuko.com
原文:http://www.cnblogs.com/lxllanou/p/3928600.html
评论(0)