Delegateble
@available(*, deprecated, message: "Migrate to https://github.com/stanwood/SourceModel_iOS")
public protocol Delegateble : ForceDelegateble
Delegateble protocol of type UICollectionViewCell
|| UITableViewCell
used to set a delegate of type AnyObject
Example: Delegetable example
protocol ModuleCellOneDelegate: class {
func didTapEvent()
}
protocol ModuleCellTwoDelegate: class {
func didTapEvent()
}
protocol ModuleCellsDelegate: ModuleCellOneDelegate, ModuleCellTwoDelegate {}
class ModuleViewController: UIViewController, ModuleCellsDelegate {}
class Cell: UICollectionViewCell: Delegetable {
.....
cell.set(delegate: self) {}
}
See also
-
Set current cell with a delegate
Declaration
Swift
func set(delegate: AnyObject)
Parameters
delegate
the delegate class