jjzjj

MFMailComposeViewController

全部标签

iphone - MFMailComposeViewController 在 iOS5 中 dismissModalViewControllerAnimated 时崩溃

我在我的控制台中使用MFMailComposeViewController来提供邮件功能,但在发送邮件后或当我想取消邮件时它会崩溃。下面是我的代码:(IBAction)FnForPlutoSupportEmailButtonPressed:(id)sender{{if([MFMailComposeViewControllercanSendMail]){MFMailComposeViewController*mailer=[[MFMailComposeViewControlleralloc]init];mailer.mailComposeDelegate=self;[mailersetS

ios - 如何使 MFMailComposeViewController 的 UIBarButtonItems 的颜色从默认的蓝色变为蓝色?

无论我尝试什么,在用户选择通过电子邮件发送链接(它是一个MFMailComposeViewController)时出现的电子邮件屏幕中,按钮始终是默认的蓝色。我的AppDelegate中有这个:[[UINavigationBarappearance]setBarTintColor:[UIColorcolorWithRed:0.000green:156/255.0blue:51/255.0alpha:1]];[[UINavigationBarappearance]setTintColor:[UIColorwhiteColor]];[[UINavigationBarappearance]s

iphone - MFMailComposeViewController 的委托(delegate)不处理取消按钮

这个问题在这里已经有了答案:关闭11年前。PossibleDuplicate:Actionsheetdoesn'tdisplaywhentheMFMailComposeViewController'scancelbuttonistapped我已经根据Apple提供的代码示例在我的应用程序中实现了标准邮件功能。我按如下方式设置委托(delegate):MFMailComposeViewController*picker=[[MFMailComposeViewControlleralloc]init];picker.mailComposeDelegate=self;我正在实现-(void)

ios - 取消按钮在 MFMailComposeViewController 中不执行任何操作 - iOS 8

我已经创建了一个MFMailComposeViewController并且能够显示它,但是一旦我按下取消按钮,取消按钮和发送按钮就会变灰并且操作表不会出现。有什么我想念的吗?MFMailComposeViewController*m=[[MFMailComposeViewControlleralloc]init];[msetToRecipents:@[@"abc@example.com"]];[msetSubject:@"Subject"];[msetMessageBody:@"..."isHTML:YES];[msetMailComposeDelegate:self];[selfpr

iphone - iOS:是否可以使用动画附加 MFMailComposeViewController?

我正在将图像附加到MFMailComposeViewController中,一切正常,但我想知道是否可以提供附件动画?例如:-当我们从iPhone设备的照片库中附加图像时。并在MailComposeViewcontroller中选择所有选定图像移动的邮件按钮,并带有漂亮的ANIMATION。所以请任何伙伴指导我这个东西是否可行。?如果是,那么我如何设置附件动画。 最佳答案 存在一些半解决方案。实际上,您可以添加任何UIView作为主应用程序窗口的subview。它会位于所有应用程序内容之上。使用它,您可以模拟将图像附加到MailCo

ios - 无法关闭 Swift 3.0 中的 MFMailComposeViewController

MFMailComposeViewController在按下取消或发送按钮后无法关闭。我已经在我的类(class)中添加了MFMailComposeViewControllerDelegate但它仍然不起作用?这是我的代码:funcsendEmail(){letMailVC=MFMailComposeViewController()MailVC.mailComposeDelegate=selfMailVC.setToRecipients(["\(emailLabel?.text)"])MailVC.setSubject("Setyoursubjecthere!")MailVC.setM

iphone - MFMailComposeViewController 在一个单独的类中

我试图创建一个可以在多个iPhone项目中使用的“实用电子邮件发件人类”。我为此目的创建了MailSenderheader和实现。邮件发送器.h:@interfaceMailSender:NSObject-(id)initWithParent:(UIViewController*)mainController;-(void)invokeMailSender:(NSString*)to:(NSString*)subject:(NSString*)failureTitle:(NSString*)failureMessage:(NSString*)failureCancel;@endMail

ios - 将 modalPresentationStyle 设置为自定义会导致 MFMailComposeViewController 中的状态栏颜色错误

我有一个简单的Controller,它显示另一个具有自定义转换的Controller。我使用实心导航栏:self.navigationController.navigationBar.barStyle=UIBarStyleBlack;self.navigationController.navigationBar.barTintColor=[UIColorpurpleColor];self.navigationController.navigationBar.tintColor=[UIColorwhiteColor];这是第二个Controller:当我在子Controller中打开MF

objective-c - MFMailComposeViewController : cancel doesn't exit to my app?

我正在尝试使用MFMailComposeViewController发送邮件。当我点击我的应用程序上的按钮时会发生这种情况。当然,当我单击邮件Controller的取消按钮时,我想返回到我的应用程序View,但它不起作用。该怎么办?这是我的代码:MFMailComposeViewController*controller=[[MFMailComposeViewControlleralloc]init];controller.mailComposeDelegate=self;[controllersetSubject:@"Subject"];[controllersetMessageBo

ios - UIAppearance 移除 MFMailComposeViewController 的自定义 NavBar 背景

我在我的应用程序的导航Controller中有一个自定义导航栏图像,使用UIAppearance协议(protocol)设置。但是,当通过应用程序发送邮件时(通过MFMailComposeViewController),我想要默认的导航栏而不是自定义导航栏。我尝试了这个问题中概述的方法:UIAppearanceRemoveCustomNavBarBackgroundforUIPopoverController但它没有用。我使用的代码是:[[UINavigationBarappearanceWhenContainedIn:[MFMailComposeViewControllerclass