How can I get a NSArray
of all applicationActivities
installed in the device?
- (id)initWithActivityItems:(NSArray *)activityItems applicationActivities:(NSArray *)applicationActivities;
I'd like to remove one or two items and show the rest of the full list.
Not sure how to get list of all applicationActivities
. If you want to exclude some activity types, you can use excludedActivityTypes
property of UIActivityViewController
. As per the documentation,
This property contains an array of strings, each of which corresponds to the value you would find in the activityType parameter of a UIActivity object. Each string you specify indicates a service that you do not want displayed to the user. You might exclude services that you feel are not suitable for the content you are providing. For example, you might not want to allow the user to print a specific image. If the value of this property is nil, no services are excluded.
This value of this property is nil by default.