[cell.changeBtn addTarget:self action:@selector(cellButtonClicked:event:) forControlEvents:UIControlEventTouchUpInside];
- (void)cellButtonClicked:(id)sender event:(id)event {
NSSet * touches =[event allTouches];
UITouch * touch =[touches anyObject];
CGPoint currentTouchPosition = [touch locationInView:_tableView];
NSIndexPath * indexPath = [_tableView indexPathForRowAtPoint:currentTouchPosition];
if (indexPath!= nil) {
UploadCHstViewController *upVC =[UploadCHstViewController new];
//传值
[self.navigationController pushViewController:upVC animated:YES];
}
}
网友评论