Я хочу показать сообщение оповещения, когда на устройстве не настроено почтовое сообщение. Но когда я нажимаю «Почта» из взаимодействия с документом, он просто просто увольняет контроллер, ни один из двух следующих делегатов метод вызовет. Пожалуйста, обратитесь к изображению для лучшего понимания.Метод делегата UIDocumentInteractionController не вызывается при нажатии на почтовую кнопку
Пожалуйста, помогите. Спасибо заранее
- (void)openAppList:(FileInfo *)fileinfo {
NSURL *fileURL = [NSURL fileURLWithPath:fileinfo.fullName];
UIDocumentInteractionController *interactionController = [UIDocumentInteractionController interactionControllerWithURL:fileURL];
[interactionController retain];
interactionController.delegate = self;
BOOL present = [interactionController presentOptionsMenuFromRect:CGRectZero inView:self.tabBarController.view animated:YES];
if (!present) {
[MainteOrErrorDialog initWithErrorCode:kAlertNotOpenInFileId filename:fileInfo.filename target:nil action:nil];
} else {
[interactionController retain];
}
}
#pragma UIDocumentInteractionDelegate
- (void)documentInteractionController:(UIDocumentInteractionController *)controller
willBeginSendingToApplication:(NSString *)application
{
}
- (void)documentInteractionController:(UIDocumentInteractionController *)controller
didEndSendingToApplication:(NSString *)application
{
}