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
3
votes
3 answers

Swift attaching image to iMessage

I'm trying to write a program that when you tap an image stored in the app, it opens up an iMessage with the image in the body ready to send. It is working except that the image appears in the text as a file with a name that you can open with…
Alex
  • 299
  • 3
  • 16
3
votes
1 answer

Listening for iMessage or SMS via private API's

i am trying to develop an internal application for my organisation, but i need to detect incoming sms or imessage received on that device, and send some silent sms. I am still not able to find any helpful code that i can use in order to achieve what…
3
votes
2 answers

Take a screenshot of app then attach in Message using Swift

I am trying to take a screenshot of my app then send it to a contact in a message. The screenshot is taken just fine when I view it in my Photo Library... but when the message composer opens the image it appears with "?" like the mime type isn't…
BX69
  • 421
  • 5
  • 18
3
votes
3 answers

Cancel not visible on MFMessageComposeViewController in blue color navigation bar

In my application my navigation bar color is blue. While opening MFMessageComposeViewController its cancel button color is also blue so user is not able to see cancel button. Cancel button is performing action, i cam dismiss…
3
votes
1 answer

SMS Message Composer displays a hole in place of contacts

It used to work like this: But then, a developer working with our company made a bunch of changes to make the navbar and status bar the same color in iOS 7, changing the style of the status bar. Now, bringing up the SMS Message Composer looks like…
Gregory Magarshak
  • 1,883
  • 2
  • 25
  • 35
3
votes
0 answers

Do I have to dismiss a MFMessageComposeViewController in its didFinishWithResult delegate method?

I'm trying to allow the user to send multiple text messages in succession in a MFMessageComposeViewController, but if I don't dismiss the controller in the didFinishWithResult delegate method, the Cancel button in the top right corner becomes…
maxstoller
  • 43
  • 3
3
votes
0 answers

Mfmessagecomposeviewcontroller dismisses immediately after showing

I've looked around all over the place, but I haven't found a solution to this oddly specific problem. I have a UIToolbar that contains, among other buttons, one that calls a method that shows an MFMessageComposeViewController. When it's called, if…
3
votes
1 answer

open URL inside presented MFMessageComposeViewController

I have an app that presents a MFMessageComposeViewController for sending a text message for a predefined number. The current user already has an SMS history with this number, so already existing SMS with this number show up in the composer. Some of…
augustos10
  • 133
  • 1
  • 6
3
votes
2 answers

app get crashed while navigating to RootViewController from Message popup

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…
Eva
  • 113
  • 5
3
votes
1 answer

MFMessageComposeViewController fails to send

I am trying to have users send a phone verification text via SMS. The first time they try sending the message to a number, it looks like the message goes through and we get a callback with MessageComposeResultSent. However, no message actually is…
3
votes
2 answers

how to attach a Audio file to the MFMessage Composer

I an new to Iphone developing now i have a problem with MFMessageComposer how to attach a audio file with message like MMS .I knew how to attach attachments to MFMailComposeViewController but i want for MFMessageComposeViewController please…
08442
  • 521
  • 2
  • 13
3
votes
1 answer

Attach a vCard to MFMessageComposeViewController

I am trying to attach a .vcf file to the MFMessageComposeViewController as a share contact feature in my app. I referred this link and it is said that there is no possibility to send a contact info through message composer. I also tried setting the…
Ananth
  • 815
  • 9
  • 26
3
votes
0 answers

SMS Link to Google Maps with MFMessageComposeViewController

I wish to know if it's possible to construct an SMS to send the details of a Maps locations, which would link to at least the iOS Maps or Mobile Web Google Maps, in the same manner as that which is constructed via the actual Maps app, when the user…
David van Dugteren
  • 3,879
  • 9
  • 33
  • 48
2
votes
1 answer

Verify iMessage Support, SMS Support

I am using ShareKit. Sending SMS messages uses the MFMessageComposeViewController, with the user seeing the title "Text". I want to change that title to something that is more reflective of what is actually available, which may be SMS or iMessage or…
Jim
  • 5,940
  • 9
  • 44
  • 91
2
votes
3 answers

While sending SMS, application is crashing

I want to send sms using below code in iPhone 4, but the application is crashing due to this code only. if ([MFMessageComposeViewController canSendText]) { MFMessageComposeViewController *smsComposerController =…
user855698
1 2
3
13 14