mfmailcomposeviewcontroller

Change title of MFMailComposeViewController

我只是一个虾纸丫 提交于 2019-12-18 02:28:59
问题 I'm using MFMailComposeViewController for in-app email in my app, but I'm not able to change the title. As default it's showing the subject in the title, but I would like to set the title to be something else. How can I do that? I've tried: controller.title = @"Feedback"; but it didn't work. Here's my code: - (IBAction)email { NSArray *array = [[NSArray alloc] initWithObjects:@"myemail@gmail.com", nil]; MFMailComposeViewController *controller = [[MFMailComposeViewController alloc] init]; [

How to zip folders in iPhone SDK?

好久不见. 提交于 2019-12-17 18:29:45
问题 In my Application,I am taking screenshots of image View and then I am saving those screen shots in document folder of the application.Now I want to Email all those images with the same folder structure they are in.Zipping all the folders containing the images and then attaching the zip file to the mail will solve the problem but how can I zip these folders and then attach them to the mail? Any help is appreciated! 回答1: I have used this code to create a zip file of the documents directory of

MFMailComposeViewController in iOS 7 statusbar are black

删除回忆录丶 提交于 2019-12-17 10:35:09
问题 i have a feedback button in my ios 7 application with MFMailComposeViewController. After the user click this button the mailcomposer open but the statusbar changed to black. Have anybody a idea what can i do? i have this problem only with ios7. i customizing my app for ios7. MFMailComposeViewController *mailController = [[MFMailComposeViewController alloc] init]; mailController.mailComposeDelegate = self; [mailController setSubject:@"Feedback"]; // Fill out the email body tex NSString

Failed on using Swift to implement in-app email

醉酒当歌 提交于 2019-12-14 03:39:36
问题 I want to use swift to implement in-app email. When I click the button, the email window pops up. However, I am unable to send my email. Moreover, after I click cancel-delete draft, I cannot go back to the original screen. import UIkit import MessageUI class Information : UIViewController, MFMailComposeViewControllerDelegate{ var myMail: MFMailComposeViewController! @IBAction func sendReport(sender : AnyObject) { if(MFMailComposeViewController.canSendMail()){ myMail =

MFMailCompose Custom buttons

痞子三分冷 提交于 2019-12-14 03:06:26
问题 UIBarButtonItem *button = [[UIBarButtonItem alloc] initWithCustomView:[[UIImageView alloc] initWithImage:[UIImage imageNamed:@"cancel.png"]]]; button.target = picker.navigationBar.topItem.leftBarButtonItem ; button.action = picker.navigationBar.topItem.leftBarButtonItem.action; picker.navigationBar.topItem.leftBarButtonItem=button; Hi folks, I'm trying to change the style of the buttons of the mail composer. The above code does change the look of the button, however the action seems to be

Issue attaching CSV file to E-Mail Objective - C

笑着哭i 提交于 2019-12-13 21:20:59
问题 I'm using the following IBAction to attach a CSV file consisting of some simple receipt data to an e-mail, however when the e-mail composer view opens, a greyed out file appears in the body section and when I actually send the message the message sends with no attachment at all. Heres my code: - (IBAction)actionEmailComposer { NSLog(@"Receipts Count: %d", [receipts count]); //Create CSV File NSMutableString *csvString = [[NSMutableString alloc] init]; [csvString appendString:@"Date,Business

How can I Attached NSMutableArray Data With E-mail Body?

限于喜欢 提交于 2019-12-13 18:13:25
问题 I am trying to attached NSMutableArray data to E-mail body. Here is my NSMutableArray code: NSUserDefaults *defaults1 = [NSUserDefaults standardUserDefaults]; NSString *msg1 = [defaults1 objectForKey:@"key5"]; NSData *colorData = [defaults1 objectForKey:@"key6"]; UIColor *color = [NSKeyedUnarchiver unarchiveObjectWithData:colorData]; NSData *colorData1 = [defaults1 objectForKey:@"key7"]; UIColor *color1 = [NSKeyedUnarchiver unarchiveObjectWithData:colorData1]; NSData *colorData2 = [defaults1

Email issue: want to send email without additional window

不羁的心 提交于 2019-12-13 04:42:29
问题 I want to send email without showing MFMailComposeViewController. I just want to send email to some sequence of emails (so user should see only my spinner, not MFMailComposeViewController with send button). The only way to send emails I know is: (but it's not I want) -(void)showMessageController:(id)sender { Class mailClass = (NSClassFromString(@"MFMailComposeViewController")); if (mailClass != nil) { // We must always check whether the current device is configured for sending emails if (

getting from email address when using MFMailComposeViewController

旧巷老猫 提交于 2019-12-13 04:13:19
问题 i want to show user from which account he is going to send email when he is going to send an email using my app and i am using MFMailComposeViewController. so what is the way of getting the from email address. 回答1: There is no way to get this information. Mail sent via MFMailComposeViewController is always sent from the user's default address. 回答2: Mail sent via MFMailComposeViewController is always sent from the user's default address. User's default address is selected by default but the

how to compose mail when button at index clicked in UIActionSheet?

大憨熊 提交于 2019-12-13 02:59:48
问题 I am a bit confused on how to display mail composer when I click the email option in UIActionSheet . Here's my sample code: -(void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex { if(buttonIndex == 0) { NSString *emailTitle = @"Test Email"; NSString *messageBody = @"iOS programming is so fun!"; NSArray *toRecipents = [NSArray arrayWithObject:@"support@email.com"]; MFMailComposeViewController *mc = [[MFMailComposeViewController alloc] init]; mc