以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]);
}
}