Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

iOS 8 - Disable iCloud Photo Sharing Activity

Apparently iOS8 by default adds a "iCloud Photo Sharing" activity to activity views in iOS8 and I haven't found any useful documentation regarding it, especially how to explicitly remove it (going into the "More" option allows the user to toggle showing/hiding it, but for our app we want to completely disallow this option).

Has anyone figured anything out about how to disable this? Any input would be appreciated. Thanks!

Activity VC with unwanted "iCloud Photo Sharing" option

"More" option with user-performed manual enable/disable

like image 755
Brendan Cain Avatar asked Sep 11 '14 20:09

Brendan Cain


1 Answers

If you init your UIActivityViewController with full of images, iCloud sharing set to activity types by default. You can add a string in your activityItems array. This move will cause that iCloud sharing to be removed from activityTypes.

NSArray *Items   = [NSArray arrayWithObjects: image1, image2, @"", nil];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:Items applicationActivities:nil];
like image 176
SdkKml Avatar answered Sep 24 '22 02:09

SdkKml