I have a custom UITableViewCell in my UITableView of an objective c application. I had a imageView on the left and a label, but now I want add a check in the right position. I have this check added in accessory view into my custom cell, but I have the didSelectRow function too.
How can I disable the didSelectRow in the region of accesoryView? Is it possible?
You can add UIButton
on right side with size you want. In your cell create delegate protocol, VC should implement it and set self as delegate.
Though the OP probably has their answer long since, for posterity: this UITableViewDelegate method: tableView(_:accessoryButtonTappedForRowWith:) exists to resolve this issue/mmet this need.
Cheers!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.