9

If you launch the Photos app on iPad (iOS7) and tap the action button, you get a UIActivityViewController whose top half is made of a multi-select gallery, from within which you can select any number of items. The sharing options automatically adjust from your selection (for example "Twitter" and "Assign To Contact" disappear if you select more than one item).

I have found nothing that appears to support this in the iOS7 SDK, so I wonder if this feature is unavailable to developers. Does anyone know how such a thing can be done?

1 Answer 1

2

When using a UIActivityViewController you can set an array of items that you wish to share. Normally this is just an image and maybe a string (for tweeting an image, for example) however if you add multiple images to the array that you use in - (id)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities; you can share more than one image (and such 'Assign to contact' or 'Tweet' aren't available because they need only one image).

2
  • 2
    Yes, but when I do that (for example when I include two images) the UIActivityViewController does not display them and the user is not given the opportunity to toggle some of these off.
    – Clafou
    Commented Oct 11, 2013 at 12:03
  • 2
    did you ever find a solution to this?
    – Reneli
    Commented Apr 5, 2017 at 16:53

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.