您需要使用
@objc属性标记协议,以便可以从Objective-C访问该协议:
@objc protocol RateButtonDelegate { func rateButtonPressed(rating: Int)}
Apple文档中的此页面涵盖了此问题。
欢迎分享,转载请注明来源:内存溢出
您需要使用
@objc属性标记协议,以便可以从Objective-C访问该协议:
@objc protocol RateButtonDelegate { func rateButtonPressed(rating: Int)}
Apple文档中的此页面涵盖了此问题。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)