iOS 8 - Disable iCloud Photo Sharing Activity

前端 未结 2 876
情歌与酒
情歌与酒 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: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];
    

提交回复
热议问题