iphone - UiDocumentInteraction returns generic icons for images in iPad -


i need make simple file viewer , method returns icon images files.

+ (uiimage *)imageforfile:(nsstring *)filepath {     nsurl *url = [nsurl fileurlwithpath:filepath];     uidocumentinteractioncontroller *c = [uidocumentinteractioncontroller interactioncontrollerwithurl:url];     uiimage *thumbnail = nil;      nsarray *icons = c.icons;     if([icons count] > 0)     {         thumbnail = [icons objectatindex:0];     }     return thumbnail; } 

on ipod icons correct, on ipad 1g returns generic file icon images (jpg/png/gif). both have ios 5.0. how can proper icons images?

thank you!


Comments

Popular posts from this blog

c# - SVN Error : "svnadmin: E205000: Too many arguments" -

c++ - Using OpenSSL in a multi-threaded application -

All overlapping substrings matching a java regex -