Questions tagged [mfmessagecomposeviewcontroller]

For questions about the MFMessageComposeViewController class in iOS, which allows composing and sending text messages.

The MFMessageComposeViewController class provides a standard system user interface for composing text messages. Use this class to configure the initial recipients and body of the message, if desired, and to configure a delegate object to respond to the final result of the user’s action—whether they chose to cancel or send the message. After configuring initial values, present the view controller modally using the presentModalViewController:animated: method. When done, dismiss it using the dismissModalViewControllerAnimated: method.

Reference: https://developer.apple.com/library/prerelease/ios/documentation/MessageUI/Reference/MFMessageComposeViewController_class/index.html

199 questions
22
votes
2 answers

Recipients field of MFMessageComposeViewController doesn't show in iOS 7

The code below works fine in iOS 5/6. In iOS 7, it looks like this (red oval for emphasis). Code: if ([MFMessageComposeViewController canSendText]) { self.messageComposer = [MFMessageComposeViewController new]; …
XJones
  • 21,959
  • 10
  • 67
  • 82
21
votes
4 answers

iOS 10 can no longer set barcolor and tint on MFMessageComposeViewController

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; …
21
votes
2 answers

MFMessageComposeViewController iOS7 addAttachmentData:typeIdentifier:filename: not working

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 =…
Beny Boariu
  • 736
  • 2
  • 11
  • 26
11
votes
3 answers

UIActivityViewController With Alternate Filename?

I am sharing an audio recording via the UIActivityViewController. When the audio file shares via email or iMessage, it shows the underlying name of the audio file without any apparent way of changing it. NSArray *activityItems = [NSArray…
10
votes
6 answers

How to attach Image with message via iPhone application?

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…
huu
  • 109
  • 1
  • 1
  • 7
10
votes
3 answers

MFMessageComposeViewController much slower on iOS 7

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…
8
votes
2 answers

MFMessageComposeViewController messages disappear and fail to send after send button is pressed (iOS 7)

I have an app in which the user can select an image and send it to a friend by attaching the image to an instance of MFMessageComposeViewController. After pressing send in the MFMCVC view, things work as expected some of the time--the message with…
6
votes
4 answers

iOS: crash if sharing with "Message" option

Our app only supports portrait mode. Presenting a UIActivityViewController works. However, sharing with the "Message" option crashes the app: *** Terminating app due to uncaught exception 'UIApplicationInvalidInterfaceOrientation', reason:…
Crashalot
  • 33,605
  • 61
  • 269
  • 439
6
votes
1 answer

Display video properly in IMessage

Currently, I am developing an App in which I have to send photo/video via IMessage. Photo sending code is proper working but when I am sending video via IMessage I am only getting a icon make in composer no video is display like below: I am using…
Vishal
  • 8,246
  • 6
  • 37
  • 52
5
votes
1 answer

How to enable buttons in MessageUI (Swift 4)

I'm trying to enable the Camera and Apps buttons in MessageUI for my app. I haven't found any place in Apple's documentation on how to do this. Any ideas? Thanks! UPDATE: I found a disableUserAttachments() function in Apple's documentation, which is…
TDM
  • 814
  • 2
  • 12
  • 21
5
votes
1 answer

Issue using MFMessageComposeViewController on iPhone 8 and iPhone 8 plus running iOS11

iPhone 8 and iPhone 8 plus using iOS 11 are not able to open MFMessageComposeViewController from inside the iOS Application. They sometimes open a black screen. Is anyone else facing this issue on iPhone 8 running iOS 11 and has found a solution?…
Uma
  • 51
  • 2
5
votes
1 answer

MFMessageComposeViewController's cancel button color

I want to customize MFMessageComposeViewController with a specific image for the navigation bar and a simple white color for status bar, navigation bar's title and cancel button. The only thing I can't do is to change the cancel button's color. Here…
5
votes
1 answer

Application tried to present a nil modal view controller on target when sending text

I'm trying to sent a text message and have controller set up like so, but I get an error message 'NSInvalidArgumentException', reason: 'Application tried to present a nil modal view controller on target .'…
Rafa
  • 3,219
  • 4
  • 38
  • 70
5
votes
0 answers

MFMessageComposeViewController add line break after attachment

I realized that iOS9 adds a line break after the attachment when trying to send a SMS with MFMessageComposeViewController. It's a problem as our SMS receiver is parsing the input characters to route it to an the correct mail inbox. We're using a…
kentos
  • 63
  • 5
5
votes
0 answers

Changing MFMessageComposeViewController recipients text color

When sending an SMS in iOS7 using MFMessageComposeViewController, some of the UINavigationBar and SMS recipients bar conforms to the [UINavigationBar appearance]; however, some is also missing. First, the text of the Cancel button is the default…
Jorn
  • 1,054
  • 9
  • 25
1
2 3
13 14