UIActivityViewController "Assign Contact" has stopped working with iOS 8.0
I have the following code, working for an iOS 7 app, where a picture of my choice can be assigned to a contact's profile picture.
NSArray* actItems = [NSArray arrayWithObjects:image,string,nil];
UIActivityViewController *activityViewController = [[UIActivityViewController alloc] initWithActivityItems:actItems applicationActivities:nil];
activityViewController.excludedActivityTypes = @[UIActivityTypeAirDrop,UIActivityTypeSaveToCameraRoll,UIActivityTypeAddToReadingList];
[activityViewController setCompletionHandler:^(NSString *activityType, BOOL completed) {
}];
[self presentViewController:activityViewController animated:YES completion:nil];
This works fine on iOS 7, but on iOS8 I cannot assign any image to any contact. Instead of asking you to crop the image in a circle, the app only shows the contact details, without being able to assign an image to a person.
The app is given access to contacts if I see the "Privacy" section in the "Settings" app. I know the completion handler is deprecated on iOS 8, so I tried both with and without an expression. No change in the result.
Your thoughts will be greatly appreciated.
+3
source to share
No one has answered this question yet
Check out similar questions: