I know this is really easy question, and i checked almost every question in stackoverflow, but i couldn’t find a proper solution.
I have a custom UITableViewCell,
I tried
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];
and
[cell setUserInteractionEnabled:NO];
already, but it still prevents the button inside of the cell being selected. I tried to implement several delegate methods, but still no luck.
I was hoping you guys can help me with this.
Thank you.
Simply Assign the
UIButton, the selector you want to perform as an action; intableView:cellForRowAtIndexPath:, and DO NOTHING intableView:didSelectRowAtIndexPath:Edit After Your Comment:
And put
[cell setSelectionStyle:UITableViewCellSelectionStyleNone];forindexPath.row == 0intableView:cellForRowAtIndexPath:That’s it.