Question

I'm working in iOS 7, and I want to show a UIActivityViewController all with my custom activities and no built in activities. I know that I can use excludesActivityTypes and list all the constants that are defined, but is there a way to automatically exclude all system activities(but not my own)?

I would hate to list all the system activities in the call to that property, and then have my app break when iOS 7.2 or iOS 8 comes around and adds more built in activities.

Was it helpful?

Solution

Sadly the API doesn't support this. You must list all activities for exclusion. Every iOS update you need to check to see if any new activities are available and update your app accordingly.

Submit an enhancement request to Apple to add support for a way to either exclude all activities or a way to specify which ones to include.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top