Objective-C 中的关联类型
associatedType in Objective-C
我是 Objective-C 的初学者。
在Swift中,我们可以使用associatedType
使协议通用。 Objective-C中是否有类似associatedType
的API?
任何帮助将不胜感激
不,你不能在 Objective-C 中使用 associatedTypes。 Objective-C也没有类似的概念。
我是 Objective-C 的初学者。
在Swift中,我们可以使用associatedType
使协议通用。 Objective-C中是否有类似associatedType
的API?
任何帮助将不胜感激
不,你不能在 Objective-C 中使用 associatedTypes。 Objective-C也没有类似的概念。