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
1
vote
0 answers

Sending Group SMS iOS Swift - How to go beyond carrier's restriction of 9 - 20 messages per send attempt

I am designing an iOS app that receives multiple contact numbers from a server and sends messages to those numbers. I have made this service with an external API called Twilio, but Twilio costs(quite a lot actually if all my users are to send bulk…
Jihwan Kim
  • 23
  • 2
1
vote
1 answer

App store link in MFMessageComposeViewController shows old image

I have added the URL string for my app to the body of the MFMessageComposeViewController but when I run the app and send a message the image is an old image from the app store. How can I get it to use the current image from the app store. …
dscrown
  • 578
  • 1
  • 5
  • 21
1
vote
0 answers

Both MFMailComposeViewController and MFMessageComposeViewController giving crash on Cancel button

I have created a utility class for sending mail and sms. This is the complete code. class Utility: NSObject, MFMailComposeViewControllerDelegate, MFMessageComposeViewControllerDelegate { var subject: String! var body: String! var to:…
1
vote
2 answers

How to change the Navigation Bar color for a MFMessageComposeViewController?

I'm using the MFMessageComposeViewController and the MFMailComposeViewController. For some reason only the Mail VC is being styled with the colors I want. Here is how I am styling the Navigation bar in the AppDelegate inside the didFinish func. let…
icekomo
  • 9,328
  • 7
  • 31
  • 59
1
vote
1 answer

Refactoring ViewController(repetitive logic)

In my app, every ViewController has the same logic. I want to extract it into one class. Here's my case. Every ViewController has a variety logic to send an iMessage. The total number of view controllers is about 50. This is first VC. @interface…
1
vote
0 answers

Send Image with text message

I want to send an image with my text Message. I have used MFMessageComposeViewController. This is the code i have done: MFMessageComposeViewController *messageController = [[MFMessageComposeViewController alloc]…
Niharika
  • 1,188
  • 15
  • 37
1
vote
1 answer

NSUserDefaults Deletes Space When Passed To Another VC

I am currently trying to pass data from one ViewController to a SMS ViewController provided by Apple (through MFMessageComposeViewController) using NSUserDefaults. I am successfully passing the name of the person to the SMS textfield within my…
1
vote
3 answers

Sending photo using MFMessageComposeViewController is disabled in ios10

I have message send functionality in my app and implemented the same using MFMessageComposeViewController. I am able to attach photos with the message in iOS9 but not in iOS 10? Is there anyone having the same issue?
JamesDon
  • 65
  • 1
  • 9
1
vote
2 answers

Send SMS in iOS

I am brand new in iOS developing and xCode. Previously i developed android and i know i should work with Intent to make call and send SMS in android App. Now i want to develop a simple App that when i press a Button it send a SMS to a specific…
Alireza
  • 89
  • 2
  • 15
1
vote
1 answer

error appears when I try to present message format?

I try to present message format in main menu class from emergency class, but it doesn't present anything and this what Xcode keep telling me Warning: Attempt to present on whose…
O user
  • 97
  • 1
  • 11
1
vote
1 answer

Detecting that SMS failed to be sent on iOS

In my app, it is very important to know whether SMS has been sent or not. For checking, I am using this delegate method: - (void)messageComposeViewController:(MFMessageComposeViewController *)controller…
1
vote
1 answer

asking for permission to access text data when using MFMessageComposeViewController

I'm using a MFMessageComposeViewController instance in my app. The user clicks a button and it is taken to MFMessageComposeViewController. The question I am asking myself is..do I need to ask user for the permission to access to text messages on…
sanjihan
  • 5,592
  • 11
  • 54
  • 119
1
vote
1 answer

Using MFMessageComposeViewController to Send to an Array of Numbers Individually

Currently I am trying to send sms from a users phone through an app. The idea is that the user selects the recipients of the message and then one by one the message is sent to each recipient. Currently this is how I am doing it after a button is…
Bryant
  • 59
  • 10
1
vote
3 answers

MFMailComposeViewController and MFMessageComposeViewController have wrong bounds after rotation in iOS 8

I have an app that mostly only uses portrait mode. However, when it presents MFMailComposeViewController and MFMessageComposeViewController it is able to rotate to landscape. This has worked fine until iOS 8 where they still rotate, but their bounds…
1
vote
1 answer

MFMessgecomposer user should not able to edit message and phonenumber

I am using MFMessageComposeViewController to send the Messages. Is there any possibility making set recipients and set body fixed means,userintraction to those message and phone number should be NO? If is not there any possibility to send message…
siva
  • 251
  • 2
  • 16