我有一些NSURL *url
,我想得到它的 GenerationId:
NSDictionary *dictionary = [url resourceValuesForKeys:@[NSURLGenerationIdentifierKey] error:&error];
id generatonIdKey = dictionary[NSURLGenerationIdentifierKey]; //Returned as an id <NSCopying, NSCoding, NSObject> (read-only)
现在我想generatonIdKey
通过将其转换为NSNumber
or来显示NSString
。
可能吗?如果是怎么办?