mfmailcomposeviewcontroller

MFMailComposeViewController error [MC] Filtering mail sheet accounts for bundle ID

梦想与她 提交于 2019-12-10 02:19:12
问题 I do the standard functionality of sending messages with MFMailComposeViewController . My code: if MFMailComposeViewController.canSendMail() { let mail = MFMailComposeViewController() mail.mailComposeDelegate = self mail.setToRecipients(["someemail@gmail.com"]) mail.setSubject("Subject") mail.setMessageBody("Some Text", isHTML: false) self.presentViewController(mail, animated: true, completion: nil) } Controller do not open and I see a message in the console that have never seen. [MC]

MFMailComposeViewController uses too much memory

谁都会走 提交于 2019-12-08 23:01:36
When I try to send images as attachements(summar size ~4mb) by using MFMailCompose, activity monitor says, what 100(+-2)mb of memory is used. After sending or cancelling memory is freeing ~20 megabytes, but what happened to the remaining 80 megabytes if shared item with images is deallocated? Thanks!:) An image's file size and the amount of memory it consumes when displayed are two completely different things. Images such as JPEGs and PNGs are compressed. When they are drawn to the screen they are uncompressed. A quick rule of thumb to figure out how much memory an image will consume when

Is it possible to go back automatically into the application after calling a Number?

半世苍凉 提交于 2019-12-08 06:15:04
问题 In my application I have some phone numbers, so that the users can call the numbers. When the users tap the numbers it push them out of the application to call the number they tapped. What I want is that the application should get the users back to the application after that the conversation is finished. In Mailing mode you can use MFMailComposeController , and then switch back to the previous view. So When you use the MFMailComposeController You never get out of the application. public

Adding additional string to message body (swift)

廉价感情. 提交于 2019-12-08 05:38:28
问题 I got my email working fine. The only thing i need to do is add an additional string to my message body. For example, I want to add Name: and textfield to my message body. Something like this. Name: John Smith Phone: 566-654-6577 Email: Smith@smith.com Right now, the message body only show the following. John Smith 566-654-6577 Smith@smith.com import UIKit import MessageUI class EmailTableViewController: UITableViewController, MFMailComposeViewControllerDelegate, UITextFieldDelegate {

MFMailComposeViewController attachment file size limit

别说谁变了你拦得住时间么 提交于 2019-12-08 05:20:51
问题 I'm using MFMailComposeViewController to send a file. Everything works fine with files under 15mb. Anything over, and the file simply doesn't get attached to the MFMailComposeViewController view. It's not that the email server isn't accepting, its that it never gets attached in the first place. Does anyone have any ideas if there's a way to resolve that? I know many email services can't handle attachments over 5 or 10mb, but other services allow you much larger file size.

MFMailComposeViewController uses too much memory

时光怂恿深爱的人放手 提交于 2019-12-08 03:10:07
问题 When I try to send images as attachements(summar size ~4mb) by using MFMailCompose, activity monitor says, what 100(+-2)mb of memory is used. After sending or cancelling memory is freeing ~20 megabytes, but what happened to the remaining 80 megabytes if shared item with images is deallocated? Thanks!:) 回答1: An image's file size and the amount of memory it consumes when displayed are two completely different things. Images such as JPEGs and PNGs are compressed. When they are drawn to the

ShareKit method swizzling in Lion / Xcode 4.3.1?

帅比萌擦擦* 提交于 2019-12-07 18:51:27
问题 I recently upgraded to Lion and Xcode 4.3.1 with the iOS 5 SDK, and the sharing library ShareKit is broken - it used method swizzling for its email handler. Apparently Apple has banned or at least attempted to phase out method swizzling. ShareKit imports a file </usr/include/objc/objc-class.h> , which no longer exists, and defines its own method swizzling method SHKSwizzle . It uses this to alter MFMailComposeViewController 's viewDidDisappear: method as follows: SHKSwizzle(

MFMailComposeViewController attachment file size limit

此生再无相见时 提交于 2019-12-07 17:36:26
I'm using MFMailComposeViewController to send a file. Everything works fine with files under 15mb. Anything over, and the file simply doesn't get attached to the MFMailComposeViewController view. It's not that the email server isn't accepting, its that it never gets attached in the first place. Does anyone have any ideas if there's a way to resolve that? I know many email services can't handle attachments over 5 or 10mb, but other services allow you much larger file size. MFMailComposeViewController *mail = [[[MFMailComposeViewController alloc] init] autorelease]; mail.mailComposeDelegate =

Monotouch iOS 6 crash when using MFMailComposeViewController

十年热恋 提交于 2019-12-07 08:05:45
问题 I get a strange error when I use MFMailComposeViewController in Monotouch iOS 6, but it worked fine in iOS 5.1: *** Assertion failure in NSDictionary *_UIRecordArgumentOfInvocationAtIndex(NSInvocation *, NSUInteger, BOOL)(), /SourceCache/UIKit/UIKit-2372/UIAppearance.m:1118 Here is the code: MFMailComposeViewController _mail; public void SendFeedbackMail (string email_subject, string email_message_body, string[] email_recipients) { if (MFMailComposeViewController.CanSendMail) { _mail = new

Customizing automatic MFMailComposeViewController opened from UITextView

跟風遠走 提交于 2019-12-07 03:36:02
问题 I have a simple UITextView with an email link in it. The textview is selectable and detects links. This way, you can click on the email and it opens modally an MFMailComposeViewController view controller. But, I do some customization at the launch of the app : [[UINavigationBar appearance] setBarTintColor: myGreyColor]; [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName: [UIColor whiteColor], NSFontAttributeName: myFont}]; [[UINavigationBar appearance]