Objective-C中的associatedType

问题描述 投票:0回答:1

我是Objective-C的初学者。

在Swift中,我们可以使用associatedType使协议通用。是否有任何类似的API,例如Objective-C中的associatedType

任何帮助将不胜感激

objective-c swift generics swift-protocols associated-types
1个回答
0
投票

否,您不能在Objective-C中使用associatedTypes。在Objective-C中也没有类似的概念。

© www.soinside.com 2019 - 2024. All rights reserved.