id<NSCoding, NSCopying> to NSString

240 Views Asked by At

I have some NSURL *url and I want to get its GenerationId:

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

Now I want to display generatonIdKey by converting it to NSNumber or NSString.

Is it possible? If yes how?

0

There are 0 best solutions below