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
ios8 uiactivityviewcontroller


source to share


No one has answered this question yet

Check out similar questions:

613
iOS 8 UITableView separator inset 0 not working
598
Location Services not running on iOS 8
317
Auto preferred max layout width not available in iOS versions prior to 8.0
207
registerForRemoteNotificationTypes: not supported in iOS 8.0 and later
thirty
iOS 8.0 Beta Unknown UIKit Log
3
Sharing images from Facebook / Twitter via UIActivityViewController stopped working in iOS 8
3
The structure of the address book and contacts in iOS 8.0 and 9.0
3
"Assign contact" in UIActivityViewController doesn't work ...!
2
Failed to set contact image in iOS8 using social structure
1
Remove "Assign Contact" option in iOS Access List



All Articles
Loading...
X
Show
Funny
Dev
Pics