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]; } }
source share