ipad - How to launch an iPhone app with a document using the document's file type? -


in this thread learn how associate mime types , file suffixes iphone app app invoked when tries open document of type. great.

i'm wondering how invoke magic app: given document known mime type, how ask ios "launch whatever app accepts document"?

note, said "document", not "url"... tried invoking uiapplication.openurl() http url pointing document in question (which lives on web server serves correct mime type), iphone (actually ipad running 3.2 in case) launches safari, downloads document, looks @ mime type, , shows icon document , button saying "open in [other app]". works ugly , requires , seemingly unnecessary hop through safari.

if download document manually myself, store in temporary file (with appropriate file suffix should recognized "other app"), , invoke uiapplication.openurl() using file's file:// url, fails.

take @ uidocumentinteractioncontroller.

example here ipad:

https://developer.apple.com/library/ios/#documentation/general/conceptual/ipadprogrammingguide/coreapplication/coreapplication.html#//apple_ref/doc/uid/tp40009370-ch6-sw12

(scroll "previewing , opening files" - anchor scrolls page far)


Comments

Popular posts from this blog

android - Spacing between the stars of a rating bar? -

html - Instapaper-like algorithm -

c# - How to execute a particular part of code asynchronously in a class -