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

Message Composer in Mac Catalyst not working

I have an iOS app that gives support to Mac Catalyst (and runs in Mac OS). In the app, I have a feature where users can send text messages (basically select phone number, enter message content) via MFMessageComposeViewController. And the code for…
2
votes
1 answer

MFMessageComposeViewController - disable adding/editing of the recipients?

I know this is an old question and I have read in the documents that we cannot customise the UI of the MFMessageController/MFMailController and doing such can increase the chance of the flagging of the applications from the AppStore if they found me…
2
votes
1 answer

At which case the MessageComposeResultFailed is fired for MFMessageComposeController in iOS?

The didFinishWithResult delegate method of MFMessageComposeViewController shows that the message has been sent successfully, even when the device is in airplane mode or when the device has no SIM,but the message sending is failed.The delegate does…
2
votes
0 answers

Facing issue in setting message body in MFMessageComposeViewController

I am trying to set message body as "567" in MFMessageComposeViewController. But the text in the body is hiding behind the send button. I am using Arabic as the default language in a device (OS 12.1). If anyone faced same issue kindly help me with…
Dev
  • 112
  • 1
  • 7
2
votes
0 answers

MFMessageComposeViewController shows blank white screen on some devices

I am trying to present MFMessageComposeViewController to my view controller having body text and video attachment. It is working fine on iPhone 5 with version 10.3.3 and also on 6s plus with version 11.0.3 but it is showing white blank screen(no…
GDeep
  • 39
  • 7
2
votes
2 answers

How to send SMS within my iOS app without using MFMessageComposeViewController?

In my application, I want a user to input a phone number, press start, and then every 30 minutes that inputted phone number will receive a text message. I know MFMessageComposeViewController can open up the text view controller to send a message…
Eric Agredo
  • 487
  • 1
  • 4
  • 13
2
votes
1 answer

MessageComposeViewController only presents once

I'm using Xcode 8 to build an application for iPhone.My simple app has an button. When user tap on this button, messageComposeViewController is called and with phone number and message content filled.The message went through successfully when I…
Louis Tran
  • 1,154
  • 1
  • 26
  • 46
2
votes
1 answer

iphone 4.0 sending sms programmatically

I am working on a simple application in which I need send sms programmatically to my friends. so write below code for sending sms . MFMessageComposeViewController *picker = [[[MFMessageComposeViewController alloc]…
nivrutti
  • 297
  • 4
  • 14
2
votes
2 answers

Show MFMessageComposeViewController with hidden keyboard

In my app, I need to show history of text messages. I can show MFMessageComposeViewController, but keyboard appears there, which is something I do not need now. User can hide it by gesture, but I would like to hide it programmatically. I cannot find…
Reconquistador
  • 885
  • 8
  • 28
2
votes
1 answer

iOS - Broadcast SMS (Send SMS to multiple recipients, not as a group MMS?)

I'm working on an app with this requirement: Send SMS to multiple recipients Recipients can't see each other It seems that the MFMessageComposeViewController only does a group MMS. I haven't seen anyone asking this question, so maybe I'm just not…
Matt Koala
  • 2,171
  • 2
  • 18
  • 14
2
votes
1 answer

MFMessageComposeViewController not returning to application after send message ios9

Previously on iOS7, I have tested my SMS module and it worked nicely. After updating the iOS version, I noticed that the SMS module have some problems. In my .h file #import @interface ViewController :…
Kar Wai
  • 121
  • 1
  • 12
2
votes
0 answers

Using a MFMessageComposeViewController with a navigation controller

In my app I'm trying to open up a MFMessageComposeViewController in order for the user to send a SMS message. I have a View Controller that is a messaging delegate and part of a Navigation Controller, and this class then calls the view controller…
fanfan
  • 504
  • 1
  • 4
  • 13
2
votes
1 answer

MFMessageComposeViewController issues in iOS8

I've run into a strange bug with MFMessageComposeViewController in iOS8, that is only reproducible within my own app. It's affecting the app right now in the App Store, built with the iOS7 SDK running on iOS8, as well with the iOS8 SDK in my own…
Z S
  • 7,039
  • 12
  • 53
  • 105
2
votes
0 answers

How to send image via iMessage programmatically

I am trying to send view containing an image with text and converted to image by using this code - (UIImage *)imageWithView3:(UIView *)view { CGSize imageSize = viewAll.bounds.size; UIGraphicsBeginImageContextWithOptions(imageSize,…
Sonic
  • 518
  • 1
  • 7
  • 19
2
votes
0 answers

Set name in recipients in MFMessageComposeViewController in place of mobile number

Hello friends I have used MFMessageComposeViewController to send message for specific mobile number. For that i have used following code: if(phoneNumber) { if([MFMessageComposeViewController canSendText]) { …
Pradhyuman sinh
  • 3,936
  • 1
  • 23
  • 38