Transfer excel file from one application to another application

I added UTI export to shareDocument application

enter image description here

Another application that will import the excel file

enter image description here

Now when I use the shareDocument application, I do not see my application name in the list. So it’s wrong here if someone can share.

+1
source share
1 answer

First you need to add a Document Type . Here it is for the xls and xlsx document

enter image description here

Now you need to specify Import UTI or Export UTI

enter image description here

For more details, see How can I open my application in the "Open in ..." menu in iOS for a certain type of document?

For all System-DeclaredUniformTypeIdentifiers

Note To get the exact UTI for a specific file format:

NSArray *extensionArray = [NSArray arrayWithObjects:@"doc", @"docx", @"ppt", @"pptx", @"xls", @"xlsx",@"mp3",@"mp4",@"rft",@"rtf",@"pages",@"key",@"numbers",nil]; for (int i=0; i<[extensionArray count]; i++) { NSString *fileExtension = [extensionArray objectAtIndex:i]; NSString *utiString = (__bridge NSString *)UTTypeCreatePreferredIdentifierForTag(kUTTagClassFilenameExtension,(__bridge CFStringRef)fileExtension,NULL); NSLog(@"Extension: %@ UTI:%@",fileExtension,utiString); } 
+1
source

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


All Articles