AccessoryButtonDelegate
@objc public protocol AccessoryButtonDelegate
Handle touch event for button in DownloadTrackerCell
. DownloadListController
conforms to the protocol.
If you want DownloadListController
to handle touch event for your custom UITableViewCell, implement
assignAccessoryButtonDeletegate(_:)
in protocol DownloadActivityTrackable
and in button’s action
method, send the only protocol method to delegate object.
-
Handle button touch event for UITableViewCell.
Declaration
Swift
func tableViewCell(_ cell: UITableViewCell, didTouch button: UIButton, for controlEvents: UIControlEvents)
Parameters
cell
The UITableViewCell contains touched button.
button
The touched button in the cell.
controlEvents
The touch event.