iOS 8 - Disable iCloud Photo Sharing Activity

前端 未结 2 884
情歌与酒
情歌与酒 2021-02-15 10:08

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 expli

相关标签:
2条回答
  • 2021-02-15 11:02

    Normally you'd set the excludedActivityTypes property on your UIActivityViewController instance -- e.g., to exclude posting to Facebook, you'd put UIActivityTypePostToFacebook in that array.

    But it doesn't look like the Built-in Activity Types list (either in the documentation or in UIActiviy.h) includes a constant for iCloud Photos. That's probably worth filing a bug about.

    0 讨论(0)
  • 2021-02-15 11:04

    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];
    
    0 讨论(0)
提交回复
热议问题