mfmailcomposeviewcontroller

iOS 12.0 : Is there a way to set MFMailComposeViewController navigation bar title's text to white?

纵然是瞬间 提交于 2020-01-01 04:17:10
问题 Currently, I haven't found a way to do this for iOS 12.0. I've tried setting bar tint like so. [mailController.navigationBar setTintColor:[UIColor whiteColor]]; Then, I tried setting the title text attribute with the following code [mailController.navigationController.navigationBar setTitleTextAttributes: @{NSForegroundColorAttributeName:[UIColor WhiteColor]}; I've tried more options that I found on StackOverflow, but none of them worked. I am hoping that someone found a reliable way to

Implement animation like iPhone default mail app compose mail

一曲冷凌霜 提交于 2019-12-31 04:35:26
问题 I want to implement animation like iphone default mail app while clicking on compose mail button the animation of background and foreground view in my app. Please see attached image below. I am totally new about this animation.Please help me implementing it. Any kind of help will be appreciated. Thanks. 回答1: Try this , https://github.com/lukegeiger/LGSemiModalNavController Happy coding, Cheers :D 来源: https://stackoverflow.com/questions/33050541/implement-animation-like-iphone-default-mail-app

Disable editing on MFMailComposeViewController

两盒软妹~` 提交于 2019-12-30 07:26:19
问题 We have a business rule where we need to restrict the editing of the email body content on MFMailComposeViewController. The content will be pre-populated and needs to remain static. Is it possible to grab the UITextView object and set it to disabled or something along those lines? Another thought was to display a clear view over the top of the UITextView to prevent any interaction. Any ideas? 回答1: Ok, so yes, the answer is that it is impossible without using private APIs . I managed to do it

how to dismiss mail view controller after tapping send or cancel button

女生的网名这么多〃 提交于 2019-12-30 06:12:11
问题 while sending mail, after tapping send or cancel button view controller stays there and app stalls. //swift 2.2 ; xcode 7.3.1 ; if( MFMailComposeViewController.canSendMail() ) { print("Can send email.") } var subjectText = "Verification" var toReceipients = ["notorious.roman@gmail.com"] // var msgBody = "Verified" var mc:MFMailComposeViewController = MFMailComposeViewController() mc.mailComposeDelegate = self mc.setSubject(subjectText) mc.setMessageBody("Verified", isHTML: false) mc

How to change boilerplate “Sent from my iPhone” text in MFMailViewController message body?

和自甴很熟 提交于 2019-12-30 05:54:28
问题 I'm using the MFMailComposeViewController to send an email from within an iPhone v3.0 application. I programmatically create the message body text and display it before showing the picker. At the bottom of my message body text is the string "Sent from my iPhone." Is there anyway to modify this text or prevent it from appearing? A cursory review of the MFMailComposeViewController Class Reference and quick Googling doesn't turn up anything. Thanks in advance. 回答1: As far as I know, this is a

Changing MFMailComposeViewController's toolbar color

白昼怎懂夜的黑 提交于 2019-12-30 05:39:26
问题 I'm using a tinted navigation bar and a tinted global UIToolbar in my iPhone app. In my info view, I have a button which opens a MFMailComposeViewController, and the toolbar at the top of that view (with the "cancel" and "send" button) is still blue. I'm calling the MFMailComposeViewController like this: -(void)displayMailSheet { MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init]; picker.mailComposeDelegate = self; [picker setSubject:@"..."]; NSArray

MFMailComposeViewController in other languages?

。_饼干妹妹 提交于 2019-12-28 18:19:05
问题 Does MFMailComposeViewController come only in English!? I am toying around with the idea of using MFMailComposeViewController to handle sending email from my app but I need it to conform to the language environments of devices set to languages other than english. Is it possible to set MFMailComposeViewController to other languages? Even if I set my device's language to, say, japanese, the MFMailComposeViewController's To:, From:, Subject:, portions remain in english. How does one change the

MFMailComposeViewController Crashes because of Global Appearance Properties on iOS6

只谈情不闲聊 提交于 2019-12-28 04:14:06
问题 I am getting the following crash when I present a MFMailComposeViewController : 2013-11-08 11:04:05.963 <redacted>[7108:1603] *** Assertion failure in NSDictionary *_UIRecordArgumentOfInvocationAtIndex(NSInvocation *, NSUInteger, BOOL)(), /SourceCache/UIKit/UIKit-2380.17/UIAppearance.m:1118 2013-11-08 11:04:06.032 <redacted>[7108:1603] *** Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: 'Unknown key, "NSColor" in title text attributes dictionary' I've

How to send mail from iphone app without showing MFMailComposeViewController?

孤街浪徒 提交于 2019-12-27 12:28:25
问题 I want to send mail from my custom iPhone app. I have used MFMailComposeViewController to send mail from my iphone in my previous app. Now, i don't want to show the MFMailComposeViewController to the user, if they click Send Mail button the mail automatically send to the recipient mail address . How can i do this? Can you please help me on this? Thanks in advance. I have used below code to show the MFMailComposeViewController, MFMailComposeViewController *controller = [

IOS: How to get message body, subject and recepient after message is sent via MFMailComposeController

狂风中的少年 提交于 2019-12-25 11:53:22
问题 I am sending email via following method: -(void) sendEmailOpenControllerWithSubject:(NSString *)subject messsageBody:(NSString *) message { MFMailComposeViewController* controller = [[MFMailComposeViewController alloc] init]; controller.mailComposeDelegate = self; [controller setSubject:subject]; [controller setMessageBody:message isHTML:NO]; [controller setToRecipients:[[NSArray alloc] initWithObjects:currentProspect.email, nil]]; if (controller) [self presentModalViewController:controller