id <nscoding,nscopying =“”>到NSString

时间:2018-10-04 07:29:37

标签: objective-c nscoding nscopying

我有一些NSURL *url,我想获取它的GenerationId:

NSDictionary *dictionary = [url resourceValuesForKeys:@[NSURLGenerationIdentifierKey] error:&error];
id generatonIdKey = dictionary[NSURLGenerationIdentifierKey]; //Returned as an id <NSCopying, NSCoding, NSObject> (read-only)

现在我想通过将generatonIdKey转换为NSNumberNSString来显示。

有可能吗?如果是,怎么办?

0 个答案:

没有答案