Swift获取当前类的名字 2021-04-27 本文已影响0人 ClementGu 获取当前类的名字 上代码 let name = String(describing: Self.self) print(name) 注 这是一个简单方法但是却很有用处