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
0
votes
1 answer

In Swift, Failed to send SMS but MFMessageComposeViewController Delegate Show sent

I am using MFMessageComposeViewController to send SMS from my app. The didFinishWithResult delegate method of MFMessageComposeViewController shows that the message has been sent successfully but actually this SMS failed to send due to insufficient…
Shariif Islam
  • 259
  • 1
  • 2
  • 15
0
votes
1 answer

MFMessageComposeViewController show with message body highlighted for editing

We can create and show a text composer like so: let controller = MFMessageComposeViewController() controller.body = messageText controller.recipients = numbers controller.messageComposeDelegate = self self.present(controller, animated: true,…
Eric Conner
  • 10,422
  • 6
  • 51
  • 67
0
votes
1 answer

Error when presenting AlertView on dismissing MFMessageController

I am struggling with view hierarchy but I cannot figure out what is going wrong here. I try to send a message (MFMessageComposeViewController). I would like to show an alertView depending on the success (or not) with the help of delegate methods.…
0
votes
0 answers

How to get editable text in MFMessageComposeViewController

How to get edited text message in MFMessageComposeViewController if ([MFMessageComposeViewController canSendText]) { // for appear message view MFMessageComposeViewController *messageVC = [[MFMessageComposeViewController alloc] init]; …
Vishnu
  • 371
  • 1
  • 2
  • 17
0
votes
3 answers

MFMessageComposeVIewController is dismissing its delegate instead of itself

I have a VC that conforms to the MFMessageComposeViewControllerDelegate protocol. I am successfully presenting this view controller with the following code: - (IBAction)textAction:(id)sender { if(![MFMessageComposeViewController canSendText]) …
0
votes
2 answers

Why sending message crashes when clicking button for third time?

I set up sending message to phone numbers in my project and works fine. I click the button,iPhone sending message page pops up, if I send a message or click Cancel, it goes back. Now if I click the button for second time, nothing happens, if I click…
developermike
  • 625
  • 9
  • 17
0
votes
1 answer

I can not call more than one application message in Swift

i need to send multiple text messages , raising the application message several times. But the console show this error: 2016-08-27 19:27:17.237 AlertaTel 2.0[841:263754] Attempt to present on…
0
votes
1 answer

how to send user longitude and latitude coordinates through sms text

Within my "share location" function, I want the user to have the ability to send a text that shares their current location in the form of long/lat coordinates. The error I get with what I have implemented is "Contextual type "string" cannot be used…
0
votes
1 answer

MFMessageComposeViewController does not show message body

I have implemented the send message from my app using MFMessageComposeViewController. When the app loads the message view controller I get only the message recipient and a cancel button and no message body or Send button. I do add the message…
0
votes
2 answers

Messages Doesn't Display UIActivityViewController Action Items

I don't understand why this would occur, so I'm looking for someone to help explain the reason. I did this override in my code to fix an issue I was having with blue bar button items on a blue nav bar when in Messages via an Activity share action…
0
votes
1 answer

In App SMS With Attachment - MFMessageComposeViewControllerDelegate Related Errors

I have the following code that takes a partial snapshot of my screen in-app, then opens up a SMS dialogue window. import UIKit import MessageUI import AVFoundation class ViewController: UIViewController,…
0
votes
1 answer

Anything similar to MFMessageComposeViewController on Android?

I found that in iOS you can easily access a view controller MFMessageComposeViewController to send and receive SMS texts. Is there anything similar to this on Android? More more documentation: MFMessageViewController.
AndyRoid
  • 5,062
  • 8
  • 38
  • 73
0
votes
1 answer

Is there a way to edit the look of this mp3 file?

I am using MFMessageComposeViewController to share an mp3 file. I would like to know if there is a way I can add a custom image to this file instead of the way it looks. If possible any other customizations like changing colors would be great also.…
JohnCarp
  • 49
  • 8
0
votes
0 answers

Attributed Text Created by For-In Loop, Then Shared

So I'm attempting a two part operation: var listToMail = "" func steps (task: NSManagedObject) { let taskName = task.valueForKey("name") as? String let taskDesc = task.valueForKey("desc") as? String listToMail +=…
Dave G
  • 12,042
  • 7
  • 57
  • 83
0
votes
4 answers

sending message using MFMessageComposeViewController failed

I am facing one issue for send message to multiple contacts : 301 up contacts : Message app is not opening, If we click invite on multiple time then iMessage is opening but it will take more time (2 minute) to load message 351 up contacts : Message…