Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Adding "Open In..." option to iOS app

Tags:

ios

iphone

ipad

On iOS devices, the Mail app offers "Open In..." option for attachments. The apps listed have registered their CFBundleDocumentTypes with the OS. What I am wondering is how my app might allow users to open files generated by my app in other apps. Is Mail the only app that provides this feature?

like image 482
westsider Avatar asked Oct 20 '10 18:10

westsider


People also ask

How do I get my application to show up in the open in menu on iOS for a specific document type?

Q: How do I get my application to show up in the “Open in...” menu on iOS for a specific document type? A: You need to register the document types that your application can open with iOS. To do this you need to add a document type to your app's Info. plist for each document type that your app can open.

How do I change the open with options on my iPhone?

Open Settings and find the app you want to use – in our case Chrome. Tap on it and you'll be presented with a list of settings, one of which is the new Default Browser App option. At the moment it should be showing that Safari is the one selected. To change it you need to the tap on the current option.

How do I add open apps to my iPhone?

Once you have your apps toggled on, you can change their positions in your menu. Tap and hold the three line icon to the right until you have "grabbed" it, then drag it to where you want it.

How do I choose which app opens a file in iOS?

To do this, select a file, press Command-I, then expand the Open With section if it's not already expanded. Click the popup menu and select the app you want to use, then click Change All.


1 Answers

Take a look at the Document Interaction Programming Topics for iOS: Registering the File Types Your App Supports.

As long as you provide your document types in your Info.plist, other apps that recognize that document type will list your app in their "open in" choices. Of course, that presumes that your app creates documents that other apps can open.

like image 173
Jay O'Conor Avatar answered Oct 09 '22 01:10

Jay O'Conor