mfmessagecomposeview

app get crashed while navigating to RootViewController from Message popup

扶醉桌前 提交于 2019-12-04 13:01:34
I used MFMessageComposeViewController class for sending messages. My app get crashed in a particular situation. i e, When Message UI popup comes, user presses home button, app goes background and when come back, I wrote the code to navigate to the root view controller in applicationDidBecomeActive delegate. Please let me know if any suggestions? Shyantanu In app delegate you are assigning the rootviewcontroller and in applicationDidBecomeActive you are redirecting into rootviewcontroller , why not to try directly assign the viewcontroller instead of rootviewcontroller .. You can at least try

How do I change the color of the MFMessageComposeViewController elements?

家住魔仙堡 提交于 2019-12-04 09:47:40
I set up and open my MFMessageComposeViewController with the following: - (void)openSMSViewWithRecipientsArray:(NSArray *)recipients { MFMessageComposeViewController *messageVC = [MFMessageComposeViewController new]; if([MFMessageComposeViewController canSendText]){ messageVC.body = @""; [[messageVC navigationBar] setTintColor:[UIColor whiteColor]]; messageVC.recipients = recipients; messageVC.messageComposeDelegate = self; [self presentViewController:messageVC animated:YES completion:nil]; } } But the screen looks like this: So how do I change either the purple background where the numbers

Can't send Video to MFMessageComposeViewController

╄→гoц情女王★ 提交于 2019-12-04 05:29:05
问题 I have to send Video through message. I attached 30KB size of video. But it alerts "Video is too long". Below i mentioned the code to send video through message. NSString *message = [NSString stringWithFormat:@"Download this Video!"]; MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; [messageController setBody:message]; if ([MFMessageComposeViewController canSendAttachments]) { NSLog(@

MFMessageComposeViewController much slower on iOS 7

这一生的挚爱 提交于 2019-12-03 12:06:06
I've an app for sending email and text messages. The problem that i'm having is that the loading of the MFMessageComposeViewController much slower on iOS 7 than it was on prior iOS and it becomes worst as the number of contacts increases. Screen goes black for seconds before Messages app opens with the contents loaded. Any thoughts? With the same large number of emails, the MFMailComposeViewController is as quicker as before. Help!! Thanks. This issue has been fixed with iOS7.0.3 I have the same problem. I made the composer strong reference with @property (nonatomic, strong, retain)

iOS 10 can no longer set barcolor and tint on MFMessageComposeViewController

醉酒当歌 提交于 2019-12-03 08:31:02
问题 Below code works on iOS version 9.x or less, for some reason this does not work if iOS 10 if([MFMessageComposeViewController canSendText]) { controller.body = message; NSString *tel = pContact.tlc; controller.recipients = pContact.tlc?@[tel]:nil; controller.messageComposeDelegate = self; controller.navigationBar.tintColor = [UIColor whiteColor]; controller.navigationBar.barTintColor = [UIColor blueColor]; [self presentViewController:controller animated:YES completion:nil]; } is it broken or

iOS 10 can no longer set barcolor and tint on MFMessageComposeViewController

廉价感情. 提交于 2019-12-02 22:18:37
Below code works on iOS version 9.x or less, for some reason this does not work if iOS 10 if([MFMessageComposeViewController canSendText]) { controller.body = message; NSString *tel = pContact.tlc; controller.recipients = pContact.tlc?@[tel]:nil; controller.messageComposeDelegate = self; controller.navigationBar.tintColor = [UIColor whiteColor]; controller.navigationBar.barTintColor = [UIColor blueColor]; [self presentViewController:controller animated:YES completion:nil]; } is it broken or did some thing change. Not sure whats missing here. I am in the dark (pitch black) EDIT: I tried to use

Can't send Video to MFMessageComposeViewController

这一生的挚爱 提交于 2019-12-02 06:30:36
I have to send Video through message. I attached 30KB size of video. But it alerts "Video is too long". Below i mentioned the code to send video through message. NSString *message = [NSString stringWithFormat:@"Download this Video!"]; MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; [messageController setBody:message]; if ([MFMessageComposeViewController canSendAttachments]) { NSLog(@"Attachments Can Be Sent."); NSString *filePath=[mURL absoluteString]; NSData *videoData = [NSData

iOS – Subclassing MFMessageComposeViewController to add extra functionality

落花浮王杯 提交于 2019-12-01 14:30:26
I have subclassed RMMessageComposeViewController : MFMessageComposeViewController . The extra functionality that I'm aiming for is for the MFMessageComposeViewController to be able by itself to present a new message compose controller (over itself). So I should from one RMMessageComposeViewController instance present a new one. The message result from the new instance should be sent to the parent (or "old" one). So I suppose I need to set the parent message compose controller as the delegate when I'm creating the child ("new" one). Could someone please help me think this out, what instance

MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

此生再无相见时 提交于 2019-11-28 05:02:06
I want to attach an image to a MMS, on iOS7. I wrote following code: MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc] init]; messageController.messageComposeDelegate = self; NSData *imgData = [NSData dataWithContentsOfFile:@"blablabla"]; BOOL didAttachImage = [messageController addAttachmentData:imgData typeIdentifier:@"public.data" filename:@"image"]; if (didAttachImage) { // Present message view controller on screen [self presentViewController:messageController animated:YES completion:nil]; } else { UIAlertView *warningAlert = [[UIAlertView alloc]

How to attach Image with message via iPhone application?

佐手、 提交于 2019-11-27 11:59:11
I want to send message with image data. So I used MFMessageComposeViewController . But that controller provide only SMS service. So I used UIPasteBoard attached an image data. But It doesn't work, either. There are no "Paste" button created when typing messages. Attaching image at UIPasteBoard was clearly success. I think using MFMessageComposeViewController doesn't solve my problem. How can I accomplish my goal? Joris Kluivers This is not possible with the current MessageUI API: the MSMessageComposeViewController doesn't accept attachments like the MFMailComposeViewController does. The only