swift 3.0获取对象类名2017-04-05 本文已影响0人 501Miles let name: AnyClass! = object_getClass(obj) let className = NSStringFromClass(name)