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

Popular posts from this blog

javascript - Chart.js (Radar Chart) different scaleLineColor for each scaleLine -

apache - Error with PHP mail(): Multiple or malformed newlines found in additional_header -

java - Android – MapFragment overlay button shadow, just like MyLocation button -