Checkbox image toggle in UITableViewCell

前端 未结 6 1436
执念已碎
执念已碎 2020-11-28 02:20

I need some guidance on creating a UITableViewCell that has an image on the left which can be toggled. The image should be tappable and act as a toggle (checkbo

6条回答
  •  抹茶落季
    2020-11-28 02:40

    There's an even EASIER way to do this, if you override touchesBegan: you need to do an if statement to decide if it's within the check marks proximity, if it's not call [super touchesBegan:touches withEvent:event] and it will act as though it was selected.

提交回复
热议问题