// OC中拿到类名String
NSStringFromClass(Class aClass)
//Swift中拿到类名
String(describing: type(of: ViewController()))
// OC中拿到类名String
NSStringFromClass(Class aClass)
//Swift中拿到类名
String(describing: type(of: ViewController()))
本文标题:swift5 stringFromClass
本文链接:https://www.haomeiwen.com/subject/scdonhtx.html
网友评论