4
我收到以下錯誤剛過我按文檔交互控制器按鈕中的一個,即複印,打印等:UIDocumentInteractionController導致未知的應用程序標識符com.apple.mobilemail失敗的錯誤
Launch Services: Registering unknown app identifier com.apple.mobilemail failed
Launch Services: Unable to find app identifier com.apple.mobilemail
這裏是代碼創建交互控制器 - 網址等是即使我已經實現了委託方法是怪異的所有有效然而委託電話不打我的控制器:
UIDocumentInteractionController *documentInteractionController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
documentInteractionController.delegate = self;
[documentInteractionController presentOptionsMenuFromRect:self.view.bounds
inView:self.view
animated:YES];
//None of these delegate methods are ever called which is weird:
- (void) documentInteractionController: (UIDocumentInteractionController *) controller
willBeginSendingToApplication: (NSString *) application
{
DebugLog(@"skldjfklsdjflksdjflsdk %@", application);
}
- (void) documentInteractionController: (UIDocumentInteractionController *) controller
didEndSendingToApplication: (NSString *) application
{
DebugLog(@"skldjfklsdjflksdjflsdk %@", application);
}
- (void)documentInteractionControllerDidDismissOptionsMenu:(UIDocumentInteractionController *)controller
{
}
- (void)documentInteractionControllerDidDismissOpenInMenu:(UIDocumentInteractionController *)controller
{
}
當我從文檔交互控制器按郵件我的委託方法不叫,我有嘗試你的答案也是。 – Verma