cocoa touch - How can I use QLPreviewController in iOS to display image or file using http address? -
i' m trying use qlpreviewcontroller
display files located in web http address. example want display image located here: http://iosdevelopertips.com/wp-content/uploads/2011/05/preview.jpg
in previewitematindex
did this:
nsstring* url = @"http://iosdevelopertips.com/wp-content/uploads/2011/05/preview.jpg"; return [nsurl urlwithstring: url];
but when click on image in tableview appears loading...
indicator of qlpreviewcontroller
rotating endlessly , in log see message:couldn't issue file extension path: /wp-content/uploads/2011/05/preview.jpg
so question how can display files in qlpreviewcontroller
located in web using http
address in nsurl
? doing wrong? thanks.
you need download items , pass file urls preview controller. preview controller deals display , user interaction you.
Comments
Post a Comment