Named UIP package between applications?

Can I use a named UIP archive (i.e. not a global one) to transfer data between two applications?

  • applications are completely independent of each other, therefore they have different package identifiers from different providers
  • I would like to use named cardboard, so custom content in the global cardboard is not overwritten.

Apple docs say:

Frames can be public or private. Public printed circuit boards are called system boards; Private file cabinets are created by applications and are therefore called application collections.

It is understood that cardboard may be "global and publicly available" or "named and private."

I created two applications with different package identifiers and it seemed that I could transfer material from one application to another using a private named cardboard. But is it just a feature of iOS Simulator or something that was really supported but not well documented?

Thank you for understanding!

+5
source share
2 answers

You can set a custom string for the value of your cardboard and use it in your applications so that your applications can access the value using your unique string:

UIPasteboard *pasteboard = [UIPasteboard pasteboardWithName:@"youruniquestring" create:YES];

[pasteboard setPersistent:YES];

//save the unique identifier string that we created earlier
[pasteboard setString:@"your message"];
+9
source

It is supported. Keep in mind that named cardboard will disappear if both applications that configured it are deleted, so do not use it to store everything that you do not have a backup.

+1

All Articles