```
class func propertyList() -> [String] {
var count: UInt32 = 0
let list = class_copyPropertyList(self,&count)
for i in 0..<Int(count) {
let pty = list?[i]
let cName = property_getName(pty!)
let name = String(utf8String: cName!)
}
free(list)
return []
}
网友评论