Protocols
The following protocols are available globally.
-
Handle touch event for button in
See moreDownloadTrackerCell
.DownloadListController
conforms to the protocol. If you wantDownloadListController
to handle touch event for your custom UITableViewCell, implementassignAccessoryButtonDeletegate(_:)
in protocolDownloadActivityTrackable
and in button’s action method, send the only protocol method to delegate object.Declaration
Swift
@objc public protocol AccessoryButtonDelegate
-
Make UITableViewCell coordinate with
DownloadListController
to:- 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