I'm using a native share to share an image from my app. I've removed unwanted options using excludedActivityTypes. Some apps like Linkedin (which is installed on my device) pops up on native sharing options. How can I remove these unwanted applications without turning off these apps manually?
Asked
Active
Viewed 1,110 times
2 Answers
1
UIActivityController
has an excludedActivityTypes
property. In there you can set an array of NSStrings
with the identifiers of the activities you want to disable.
You can get LinkedIn's identifier by setting the completionWithItemsHandler
property on the controller, and logging the string that's passed to that block.

EmilioPelaez
- 18,758
- 6
- 46
- 50
-
Is there a way to create an ActivityType with the identifier so that I can use it in the excludedActivityTypes? – Naveen George Thoppan Sep 29 '15 at 06:17