在cell中先:
[cell.ClassifyButton addTarget:self action:@selector(classAction:event:) forControlEvents:UIControlEventTouchUpInside];
实现点击方法:
-(void)classAction:(UIButton *)button event:(UIEvent *)event{
UITouch *touch = [[event allTouches] anyObject];
CGPoint point = [touch locationInView:self.tableView];
NSIndexPath *indexPath = [self.tableView indexPathForRowAtPoint:point];
cityModel *Cmodel = self.listArray[indexPath.row];
PersonViewController *person = [[PersonViewController alloc] init];
person.personId = Cmodel.user[@"id"];
[self.navigationController pushViewController:person animated:NO];
}