Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如何在 Swift 中获取 anyObject 类型的类?
在 Objective-C 中,我们可以像这样得到它:
id obj = [obj class]
SWIFT 中 [obj class] 的等价物是:
obj.dynamicType