ios - Launching a different app to open file on server -
the apple docs uidocumentinteractioncontroller
"provides in-app support managing user interactions files in local system". there similar setup viewing files on server? tried sending link file nsurl
interactioncontrollerwithurl:
, didn't work. guess alternative download file, open once has downloaded, delete file. seems lot of coding work though, if there easier way that's available.
edit: know name of file want view/download, i'm not looking "file list" aspect of uidocumentinteractioncontroller
. on server, there many google earth .kml files. user isn't going directly select file open list - select file open programmatically based on actions taken user in session.
as understand it, presentopeninmenufromrect:inview:animated:
show popover "would open file 'myfile.kml' in google earth?". if user selects 'yes', uidocumentinteractioncontroller launches google earth , opens myfile.kml. guess i'm not looking file list viewer, way trigger "open with" kinda functionality, file i'm opening exists on server.
uidocumentinteraction controller can't used view list of files present on server. uidocument interaction controller takes local file present in source application , shows list of applications can open file.once use clicks on file transferred target app.
if want file server can use nsurlconnection class download file form server , store on device.
Comments
Post a Comment