jjzjj

MFMailComposeViewController

全部标签

iphone - 在 iOS 中将 zip 作为附件添加到 MFMailComposeViewController 失败

这个问题不太可能帮助任何future的访问者;它只与一个小的地理区域、一个特定的时间点或一个非常狭窄的情况有关,这些情况并不普遍适用于互联网的全局受众。为了帮助使这个问题更广泛地适用,visitthehelpcenter.关闭9年前。我有一个应用程序,我在其中将zip文件附加到邮件编辑器。我正在使用以下代码附加zip文件。NSArray*paths=NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask,YES);NSString*documentsDirectory=[pathsobjectAt

objective-c - 如何将焦点设置在 MFMailComposeViewController 的 TO 字段上?

我正在使用标准样板代码通过MFMailComposeViewController发送电子邮件,但是我找不到关于在TO字段上设置焦点的信息Safari中的页面”或map中的“共享位置”。MFMailComposeViewController*mailComposer;mailComposer=[[MFMailComposeViewControlleralloc]init];mailComposer.mailComposeDelegate=self;[mailComposersetSubject:@"MySubject"];[mailComposersetMessageBody:@"Thi

ios - MFMailComposeViewController 获取邮件正文

我可以检测到MFMailComposeViewController的委托(delegate)方法中的发送-(void)mailComposeController:(MFMailComposeViewController*)controllerdidFinishWithResult:(MFMailComposeResult)resulterror:(NSError*)error如何获取此消息的文本?我需要它进行分析。感谢 最佳答案 我不认为,您可以从委托(delegate)方法中获取文本。

objective-c - 将 MFMailComposeViewController 推送到导航堆栈?未模态呈现

我有一个表格View,其中一个单元格中显示“联系人”。选择此单元格后,我想插入MFMailComposeViewController。我似乎只能模态地呈现这个MFMailComposeViewController。这里有什么问题?谢谢!相关代码片段:-(void)tableView:(UITableView*)tableViewdidSelectRowAtIndexPath:(NSIndexPath*)indexPath{MFMailComposeViewController*controller=[[MFMailComposeViewControlleralloc]init];//*

ios - MFMailComposeViewController navigationBar 颜色不完全匹配

我已经尝试了几乎所有现有的解决方案来更改我的MFMailComposeViewController的navigationBar颜色,但它没有显示准​​确的颜色。这是我的viewController导航栏颜色:在自定义所有解决方案之后,最接近的是:我的代码中缺少什么?请看一看。MFMailComposeViewController*mc=[[MFMailComposeViewControlleralloc]init];mc.mailComposeDelegate=self;[mc.navigationBarsetTintColor:[UIColorwhiteColor]];[mcsetS

ios - MFMailComposeViewController 的 Localizable.strings 中的换行符

如何在我的语言文件中添加换行符以便在MFMailComposeViewController中使用?\n确实对我有用。用正常的点击返回键中断具有相同的结果,没有换行符!我的文件:"Body_eMail"="Hello,hereissometext.\n\nLoremipsumalsu.\n\nAndsometext,more...";我要:你好,这里是一些文字。Loremipsumalsu。还有一些文字,更多...这适用于UILabel(正如下面提到的@lawicko),但是当添加到MFMailComposeViewController时,\n字符会内联显示,如下所示:你好,这是一些文本

ios - MFMailComposeViewController canSendMail 返回 YES 但不在 iOS 中发送邮件

以下是我在邮件中发送附件的代码。这很好用。我可以发送邮件,但并不总能收到邮件。MFMailComposeViewController*picker=[[MFMailComposeViewControlleralloc]init];picker.mailComposeDelegate=self;//Setthesubjectofemail[pickersetSubject:@"Mydatafile"];//Addemailaddresses[pickersetToRecipients:[NSArrayarrayWithObjects:emailId,nil]];//Filloutthee

ios - PDF 和 MFMailComposeViewController

编写允许用户生成pdf并发送的应用程序部分。似乎工作正常。发送的PDF在MAC上可以正常打开,但在iPhone上它只会一直加载而永远不会打开。在RayWenderlich教程的帮助下创建了一个pdf文档,并通过带有MFMailComposeViewController实例的模态视图Controller将其发送出去。WTF我做错了吗?更新:PDF在Ipad上也能正常打开。问题可能出在创建PDF的代码中吗?我也有点不清楚我是否真的在创建一个持续存在的PDF,然后在同名文件的每个新版本之后被替换,或者我是否以某种方式欺骗编译器认为文档正在存储以便我可以发送它用尽可能少的代码输出。如有任何想法

ios - MFMailComposeViewController 外观 setTintColor 迷失 iOS 7

这个问题是针对运行iOS7的Xcode5的,非常奇怪。我正在尝试将所有UInavigation和UIBarButtonItem文本颜色设置为白色。所以在我的应用启动委托(delegate)中,我将代码设置为。-(BOOL)application:(UIApplication*)applicationdidFinishLaunchingWithOptions:(NSDictionary*)launchOptions{UIImage*NavigationPortraitBackground=[UIImageimageNamed:@"button_header_blue"];//Setthe

ios - 为什么 MFMailComposeViewController 在应用程序内发送电子邮件时不会关闭?

我正在开发一个iPad应用程序,它创建一个PDF,然后用户从该应用程序通过电子邮件发送。我已经能够成功设置电子邮件以附加PDF,但我无法让MFMailComposeViewController关闭。我已经阅读了关于这个问题的其他几个问题,并试图模仿他们在做什么,但邮件编辑器仍然不会解雇。我需要在我的代码中更改什么才能让它消失?-(IBAction)submitDailyReportButton:(id)sender{MFMailComposeViewController*mail=[[MFMailComposeViewControlleralloc]init];[mailsetMail