草庐IT

ThumbnailTableViewCellDelegate

全部标签

ios - swift 协议(protocol),IBOutlet 属性不能有非对象类型

我想在IB中连接一个自定义的swift委托(delegate)。delegate是swift中实现某种协议(protocol)的对象。protocolThumbnailTableViewCellDelegate{funccellWasTouched(thumbnail:Bool,cell:UITableViewCell)}classThumbnailTableViewCell:UITableViewCell{@IBOutletvarthumbnailTableViewCellDelegate:ThumbnailTableViewCellDelegate?}不幸的是,编译器会提示:err

ios - swift 协议(protocol),IBOutlet 属性不能有非对象类型

我想在IB中连接一个自定义的swift委托(delegate)。delegate是swift中实现某种协议(protocol)的对象。protocolThumbnailTableViewCellDelegate{funccellWasTouched(thumbnail:Bool,cell:UITableViewCell)}classThumbnailTableViewCell:UITableViewCell{@IBOutletvarthumbnailTableViewCellDelegate:ThumbnailTableViewCellDelegate?}不幸的是,编译器会提示:err