2024年5月11日发(作者:)
return true
}else{
return false
}
}
/**
获取对象的所有属性名称
- returns: 属性名称数组
*/
func getAllPropertys()->[String]{
var result = [String]()
let count = UnsafeMutablePointer
let buff = class_copyPropertyList(object_getClass(self), count)
let countInt = Int(count[0])
for(var i=0;i let temp = buff[i] let tempPro = property_getName(temp) let proper = (UTF8String: tempPro) (proper!) } return result } }


发布评论