I am using UIActivityViewController to share the article URL using the code below,
UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:shareItemArray applicationActivities:nil]; activityVC.excludedActivityTypes = @[UIActivityTypePrint, UIActivityTypeCopyToPasteboard, UIActivityTypeAssignToContact, UIActivityTypeSaveToCameraRoll, UIActivityTypeAirDrop]; [self presentViewController:activityVC animated:YES completion:nil];
The code above works on iOS 9 and 10, but it does not work on iOS 11
I debugged it, the code runs fine, after that I get an error log in the console, as shown below
[ShareSheet] ERROR: timeout to establish a connection with the ShareUI viewer service extension.
Are there any people faced with this problem? Is there any workaround?
EDIT: after cleaning and starting the project, I tried to do the same thing, after 2 or 3 times the UIActivityViewController was open, again I tried to get the same error the first time above, the second time only the UIActivityViewController opens.
ios objective-c iphone uiactivityviewcontroller xcode9
R. Mohan
source share