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

How to attach screenshot to mailcomposer in iOS

Hi i'm using the below code to attach screenshot to mailcomposer, i'm not having a device to check so will this work on actual device? -(void)launchMailAppOnDevice { /*Take a SnapShot of current screen*/ …
Graham Bell
  • 1,139
  • 1
  • 14
  • 30
-3
votes
1 answer

How to send a message in iOS

I am using MFMessageComposeViewController for sending sms to number of users. When click the button it is navigating to following screen. How Can I send the sms directly when user clicked on the sms button in iOS swift? if…
Gopal iOS
  • 97
  • 2
  • 7
-3
votes
1 answer

Adding BOTH Mail and SMS/MMS delegates to class type

I have a simple app. It emails and SMS/MMS a screenshot. Since I have two buttons that each execute two different functions - (1) screenshot then email; and (2) screenshot then SMS/MMS, I need to add these to my class in my code. Currently…
-3
votes
2 answers

If Within If Statement

I'm writing a bit of code which will write a text message within my app as shown below: MFMessageComposeViewController *messageComposer = [[MFMessageComposeViewController alloc] init]; [messageComposer setMessageComposeDelegate:self]; // Check…
1 2 3
13
14