Protocols
The following protocols are available globally.
-
Handle touch event for button in
See moreDownloadTrackerCell.DownloadListControllerconforms to the protocol. If you wantDownloadListControllerto handle touch event for your custom UITableViewCell, implementassignAccessoryButtonDeletegate(_:)in protocolDownloadActivityTrackableand in button’s action method, send the only protocol method to delegate object.Declaration
Swift
@objc public protocol AccessoryButtonDelegate -
Make UITableViewCell coordinate with
DownloadListControllerto:- track download activity;
- handle button touch event;
- update button’s title or image.
All properties and methods in the protocol are optional. I have made UITableViewCell conform to this protocol in extension and don’t implement any property or method.
See moreDeclaration
Swift
@objc public protocol DownloadActivityTrackable
View on GitHub
Install in Dash
Protocols Reference