以PHAsset为例子
for (PHAsset *asset inself.assetsFetchResults) {
unsigned int count;
// 获取属性列表
objc_property_t *propertyList = class_copyPropertyList([asset class], &count);
for (unsigned int i = 0; i<count; i++) {
const char *propertyName = property_getName(propertyList[i]);
NSLog(@"property----="">%@", [NSString stringWithUTF8String:propertyName]);
}
}
网友评论