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
Post a Comment