How does the Open with app work on iPhone?

As far as I know, file type processing has been added from iOS SDK 3.2, and the iOS application can associate itself with some type of file so that other applications can open this file type using the application.

Due to the sandbox mechanism in iOS, I wonder when a file in appA is opened using appB, which registered itself with this type of file, what will happen? This file is copied to appB and both appA and appB keep a copy of this file? If so, is it possible to make appB open the file under the appA document folder? I cannot find Apple documentation on this.

For example, appA stores a Keynote document in it, if I open this Keynote document with the Keynote application, can I allow the Keynote application to edit this document in place so that after editing the AppA application can see the updated document?

Any help is appreciated.

+3
source share
2 answers

There are several different questions here.

info.plist Document types, , (, ). , , application:didFinishLaunchingWithOptions: , launchOptions , . , , , , . , , .

. : http://developer.apple.com/library/ios/#documentation/uikit/reference/UIApplicationDelegate_Protocol/Reference/Reference.html#//apple_ref/occ/intfm/UIApplicationDelegate/application:didFinishLaunchingWithOptions:

SDK.

, iTunes (, Pages, Numbers ..) info.plist Document types UIFileSharingEnabled. (Apples docs: http://developer.apple.com/library/ios/#documentation/General/Reference/InfoPlistKeyReference/Articles/iPhoneOSKeys.html#//apple_ref/doc/uid/TP40009252-SW20) , UIFileSharingEnabled YES, /Documents Itunes. , , , .

+9

Sndbox unix. ( , GUID), : . , , , .

0

Source: https://habr.com/ru/post/1781793/


All Articles