摘要: Associated Type :关联类型 有时候会遇到这样的需求,继承自某一协议的类中需要保证代理方法处理的参数类型保持一致,这就需要使用关联类型来做到这一点 协议声明: protocol ATypeDelegate { associatedtype T func printContent( ct 阅读全文
posted @ 2017-05-18 15:48 madarax 阅读(631) 评论(0) 推荐(0) 编辑