UIActivityViewController Remote Controller Shutdown Timer Reports

I get this in the Xcode console when I click on my share in the application through Message: Mail works fine. The message controller is never displayed explicitly, which makes it annoying in the shipped application.

Remote compose controller timed out (YES)! 

Is this an Apple bug? This is just the beginning today.

code:

 if(SYSTEM_VERSION_GREATER_THAN_OR_EQUAL_TO(@"6.0")) { NSString *textToShare = [NSString stringWithFormat:@"test"]; NSArray *activityItems = [[NSArray alloc] initWithObjects:textToShare, nil]; UIActivityViewController *activityVC = [[UIActivityViewController alloc] initWithActivityItems:activityItems applicationActivities:nil]; activityVC.completionHandler = ^(NSString *activityType, BOOL completed) { NSLog(@" activityType: %@", activityType); NSLog(@" completed: %i", completed); }; if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { self.popover = [[UIPopoverController alloc] initWithContentViewController:activityVC]; CGRect rect = [[UIScreen mainScreen] bounds]; [self.popover presentPopoverFromRect:rect inView:self.view permittedArrowDirections:0 animated:YES]; } else { [self presentViewController:activityVC animated:YES completion:nil]; } } 
+3
source share
1 answer

There is nothing wrong with this code. It works without problems on my devices. You might want to try rebooting the device or try another device.

A few isolated links that I found for this problem were related to iOS 6 beta versions or other people suffering from an accidental crash, so maybe we are just slowing down the breaks in this messaging interface.

+3
source

Source: https://habr.com/ru/post/1444454/


All Articles