Tag: mfmailcomposeviewcontroller

MFMailComposeViewController与收件人显示名称以及电子邮件地址

我发现我可以 [picker setToRecipients:[NSArray arrayWithObject:@"My Name <myname@example.com>"]]; 在编写电子邮件时,在“收件人:”字段中显示“我的名字”,并在iPad设备上正确地将其传送到myname@example.com。 在iPad模拟器中也看起来不错(当然不能发送)。 但iPhone模拟器只显示撰写屏幕上的“1收件人”。 不知道它是否会发送好,没有一个iPhone设备方便testing。 有没有其他人走下这条路? 任何获得iPhone上的显示名称的方式组成屏幕? 谢谢

MFMessageComposeViewController外观iOS 7

我有一个外观代理,在UINavigationBar barTintColor属性设置为绿色 [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithRed:54./255 green:165./255 blue:53./255 alpha:1]]; 根据需要我重写这个使用appearanceWhenContainedIn: [[UINavigationBar appearanceWhenContainedIn:[INFSearchViewController class], nil] setBarTintColor:[UIColor colorWithWhite:0.80 alpha:1]]; 这工作正常。 但是,当我介绍一个MFMessageComposeViewController它遵守UINavigationBar代理,如下所示。 这显然看起来很可怕,我宁愿MFMessageComposeViewController不坚持代理,但试图做 [[UINavigationBar appearanceWhenContainedIn:[MFMessageComposeViewController class], nil] setBarTintColor:[UIColor whiteColor]]; 没有任何影响。 我应该采取什么行动?

MFMailComposeViewController立即解散

情况是MFMailComposeViewController将要呈现。 我看到它是中途完成的,但是却被解雇了。 这是错误的: _serviceViewControllerReady:error:Error Domain = _UIViewServiceInterfaceErrorDomain Code = 3“该操作无法完成(_UIViewServiceInterfaceErrorDomain错误3.)” 这是我的源代码来展示MFMailComposeViewController: -(void) MailExecute { if ([MFMailComposeViewController canSendMail]) { MFMailComposeViewController *mailViewController = [[MFMailComposeViewController alloc] init]; mailViewController.mailComposeDelegate = self; [mailViewController setSubject:NSLocalizedString(@"Check this new look", @"")]; [mailViewController setMessageBody: @"my new look" isHTML:YES]; [self presentModalViewController:mailViewController animated:YES]; [mailViewController release]; } else { UIAlertView *alertInternal = [[UIAlertView alloc] initWithTitle: NSLocalizedString(@"Notification", @"") […]

MFMailComposeViewController的替代品?

有没有替代MFMailComposeViewController具有或多或less相同的function,但是这将让我来处理发送电子邮件我自己,苹果电子邮件发送系统? 我想要做的是提供一个不错的电子邮件对话框,然后通过CRM系统而不是直接从iPad发送。 干杯 聂

防止MFMailComposeViewController缩放animationGIF

我将一个animationGIF附加到一个电子邮件发送与MFMailComposeViewController。 如果GIF的大小足够大,MFMailComposeViewController会询问用户是否要将其调整为较小的大小。 不幸的是,animation将不会被保存在resize的图像。 我该如何禁止MFMailComposeViewController调整图像大小或使其保留animation?

MFMailComposeViewController – 更改取消并发送button图像

我想定制MFMailComposeViewController,使它具有我的自定义图像/button,而不是默认的“取消”和“发送”button。 我试着Googlesearch一个答案,但找不到任何可以帮助我的东西。 任何帮助真的很感激。 提前致谢..

获取MFMailComposeViewController中的Recepients列表

我在我的应用程序中使用MFMailcomposerViewController。 一切工作正常,除了我需要有没有。 的收件人和用户发送给收件人的列表。 任何关于这个问题的帮助或解决scheme

使用Swift实现应用内电子邮件失败

我想用swift来实现应用内电子邮件。 当我点击button时,popup电子邮件窗口。 但是,我无法发送我的电子邮件。 而且,当我点击取消 – 删除草稿后,我不能回到原来的画面。 import UIkit import MessageUI class Information : UIViewController, MFMailComposeViewControllerDelegate{ var myMail: MFMailComposeViewController! @IBAction func sendReport(sender : AnyObject) { if(MFMailComposeViewController.canSendMail()){ myMail = MFMailComposeViewController() //myMail.mailComposeDelegate // set the subject myMail.setSubject("My report") //To recipients var toRecipients = ["lipeilin@gatech.edu"] myMail.setToRecipients(toRecipients) //CC recipients var ccRecipients = ["tzhang85@gatech.edu"] myMail.setCcRecipients(ccRecipients) //CC recipients var bccRecipients = ["tzhang85@gatech.edu"] […]

dismissModalViewController隐藏状态栏后面的父视图

我在这里有一个很奇怪的问题。 我正在使用一个现有的模式视图控制器来显示我的MFMailComposer ViewController顶部的一个ViewController放置在一个导航栏。 [self presentModalViewController:emailviewController animated:YES]; 隐藏,我用… -(void) mailComposeController:(MFMailComposeViewController *)controller didFinishWithResult:(MFMailComposeResult)result error:(NSError *)error { [self dismissModalViewControllerAnimated:YES]; } 一切工作正常,但是当我解雇我的MailComposer原始视图控制器隐藏在状态栏后面。 我试图修改视图偏移10使用setFrame方法,但它没有奏效。 (在模态视图控制器被呈现和解除之前和之后,这是累了的) 我试图通过暂时隐藏状态栏,但没有奏效。 我曾尝试self.navigationcontroller presentmodalviewcontrolle,但没有工作太… 任何想法或build议将不胜感激 编辑:大多数人给我一个build议,手动修改偏移量。 那么这是行不通的。 因为如果我在viewDidLoad / viewWillapper中执行原始视图控制器方法,那么它会在当前的模式视图控制器之前移动我的视图,而在我加载模态视图控制器之后,它将变为正常。 (void)viewDidAppear:(BOOL)animated {CGRect frame = self.navigationController.view.frame; frame.origin.y = 20; self.navigationController.view.frame = frame; }

MFMessageComposeViewController取消button不起作用

我使用这个块发送消息给联系人,发送后,后退button在那里,但是当我触摸它什么都没有发生。 请帮我:) -(IBAction) InviteIt:(id) sender{ if ([MFMessageComposeViewController canSendText]) { MFMessageComposeViewController *messageComposer = [[MFMessageComposeViewController alloc] init]; messageComposer.messageComposeDelegate = self; NSString *message = @"You have more body buddies than you think at: http://www.itunes.com/app/JoyChain "; [messageComposer setBody:message]; messageComposer.recipients = [NSArray arrayWithObjects:_itsnum, nil]; messageComposer.messageComposeDelegate = self; [self presentViewController:messageComposer animated:YES completion:nil]; } }