- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
UIButton *deleBtn = [[UIButton alloc] initWithFrame:CGRectMake(SCREEN_WIDTH - WIDTH(76), 25, WIDTH(76), HEIGHT(36))];
[deleBtn setBackgroundImage:[UIImage imageNamed:@"dierbu-shanchu.png"]
forState:UIControlStateNormal];
[deleBtn addTarget:self action:@selector(deletBtnTap: event:) forControlEvents:UIControlEventTouchUpInside];
- }
- (void)deletBtnTap:(UIButton *)sender event:(id)event{
NSSet *touches=[event allTouches];
UITouch *touch=[touches anyObject];
CGPoint cureentTouchPosition=[touch locationInView:self.tableView];
NSIndexPath *indexPath=[self.tableView indexPathForRowAtPoint:cureentTouchPosition];
NSLog(@"section----%ld,----row---%ld",indexPath.section,indexPath.row);
switch(section){
case row:
{
break;
}
default:
break;
}
}