Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3361356
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T03:08:34+00:00 2026-05-18T03:08:34+00:00

In this thread we learn how to associate MIME types and file suffixes with

  • 0

In this thread we learn how to associate MIME types and file suffixes with your iPhone app so your app will be invoked when someone tries to open a document of that type. Great.

I’m wondering how to invoke this magic from another app: given a document with a known MIME type, how do I ask iOS to “launch whatever app accepts this document”?

Note, I said “document”, not “URL”… I tried invoking UIApplication.openURL() with an HTTP URL pointing to the document in question (which lives on a web server that serves it up with the correct MIME type), the iPhone (actually iPad running 3.2 in this case) launches Safari, which downloads the document, looks at the MIME type, and then shows you an icon for the document and a button saying “Open in [Other App]”. This works but is ugly and requires an extra and seemingly unnecessary hop through Safari.

If I download the document manually myself, store it in a temporary file (with the appropriate file suffix that should be recognized by the “Other App”), and then invoke UIApplication.openURL() using the file’s file:// URL, that simply fails.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T03:08:34+00:00Added an answer on May 18, 2026 at 3:08 am

    Take a look at UIDocumentInteractionController.

    Example here for iPad:

    https://developer.apple.com/library/ios/#documentation/General/Conceptual/iPadProgrammingGuide/CoreApplication/CoreApplication.html#//apple_ref/doc/uid/TP40009370-CH6-SW12

    (scroll up slightly to “Previewing and Opening Files” – that anchor scrolls the page too far)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In this thread, we look at examples of good uses of goto in C
In this thread some one commented that the following code should only be used
I was browsing this thread , which has good recommendation but a bit too
I was reading this thread/post: https://stackoverflow.com/questions/262298/windows-c-ui-technology and am also wondering about a non .NET
I was just reading this thread and it occurred to me that there is
I recently read this thread on MSDN . So I was thinking of using
After reading many of the replies to this thread , I see that many
It seems like Groovy was forgotten in this thread so I'll just ask the
Application has an auxiliary thread. This thread is not meant to run all the
I got a comment to my answer on this thread: Malloc inside a function

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.