Warning: Undefined array key "pathway" in /home/clients/160b20c93964292618c158d21ce27bf5/sites/tech.org-services.ch/wp-content/themes/Newspaper/functions.php on line 543
Monday, December 5, 2022
HomeiOS Developmentios - UIActivityViewController ignoring excludedActivityTypes

ios – UIActivityViewController ignoring excludedActivityTypes


I have to exclude .saveToCameraRoll from a UIActivityViewController however it’s ignoring excludedActivityTypes.

activityVC = UIActivityViewController(activityItems: [imgUrl], applicationActivities: actions)
activityVC!.excludedActivityTypes = [.saveToCameraRoll]

I additionally tried making a “customized” UIActivty and exclude it:

let saveToCameraRollActivity = UIActivity.ActivityType.init(rawValue: "(UIActivity.ActivityType.saveToCameraRoll.rawValue)")
activityVC!.excludedActivityTypes = [saveToCameraRollActivity]

Each methods haven’t any impact, the Save Picture possibility continues to be displayed. What’s the level of with the ability to exclude exercise varieties if they’re ignored?

The header says:

excludedActivityTypes: [UIActivity.ActivityType]? // default is nil. exercise varieties listed won't be displayed

I want to make use of my very own Save Picture as a result of commonplace one isn’t respecting the file title (though it’s proven with the file icon and I’m utilizing a URL).

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

Most Popular

Recent Comments