Fork me on GitHub

如何得到自定义UITableViewCell中的按钮所在的cell

-(IBAction)button:(id)sender{  
UIButton* button = (UIButton*)sender;
UITableViewCell* buttonCell = (UITableViewCell*)[sender superview];
NSUInteger row = [[tableView indexPathForCell:buttonCell]row];
}



posted on 2012-03-19 21:24  pengyingh  阅读(2729)  评论(1编辑  收藏  举报

导航