Swift NSURL getResourceValue as NSURLThumbnailDictionaryKey returns nil -
i'm trying thumbnail of several files , should return nsdictionary yet keeps returning nil. instance, works:
try aurl.getresourcevalue(&thumbnails, forkey:nsurlnamekey) if let thumbnail = thumbnails as? nsstring { print(thumbnail) }
but doesn't (which i'm trying do):
try aurl.getresourcevalue(&thumbnails, forkey:nsurlthumbnaildictionarykey) if let thumbnail = thumbnails as? nsdictionary//dictionary<string, nsimage>//doesn't work either { print(thumbnail) }
anybody have idea problem here? in advance.
Comments
Post a Comment