- (void) buttonClicked:(id)sender
{
UIButton *b = (UIButton*)sender;
UITableViewCell *tableViewCell =(UITableViewCell*) [b superview];
//if you added the UIButton as a subview of UITableViewCell contendView, use this
UITableViewCell *tableViewCell =(UITableViewCell*) [[b superview] superview];
}