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

Why will my app not open the SMS message composer?

I am trying to get my app to open the SMS message composer and I get this weird error when the app tries to launch the composer: Error while [CKSMSComposeRemoteViewController: 0x1ddc2900] waiting for service to execute viewWillAppear: Error…
cory ginsberg
  • 2,907
  • 6
  • 25
  • 37
1
vote
2 answers

SMS through Iphone, MFMessageComposeViewController

I am trying to send sms through device. But it crashes on the line [self presentModalViewController:picker animated:YES]; CODE: MFMessageComposeViewController *picker = [[MFMessageComposeViewController alloc] init]; …
1
vote
2 answers

iOS – Check if MFMessageComposeViewController is currently visible

I need to check if MFMessageComposeViewController is currently visible. How can I do that? What I'm doing right now is: //Get the current visible view controller ViewController *visible = ... if([visible…
Peter Warbo
  • 11,136
  • 14
  • 98
  • 193
1
vote
1 answer

Add the MFMessageComposerViewController to the main view

is it possible to show the MFMessageComposerViewController in specified area in the main view. In other words, when i click to send a message i want to display my messageViewController inside my viewController (in order to keep the user watching the…
Ali
  • 647
  • 2
  • 10
  • 28
0
votes
0 answers

iOS Dev: Send P2P Apple Pay Message with Swift

Is it possible with MFMessageComposeViewController or some other controller to queue up/send an Apple Pay request message to a user's contact? The Apple Pay API documentation I've read has been business-centric, so I'm unsure if the API allows for…
0
votes
0 answers

Where is the message instance property of MFMessageComposeViewController?

Why am I not seeing the message instance property of MFMessageComposeViewController? When I type the following, I get a code-time error message in Xcode that says "Value of type 'MFMessageComposeViewController' has no member…
daniel
  • 1,446
  • 3
  • 29
  • 65
0
votes
1 answer

How to access the method in the Private API framework and pass the value to it?

First - I know private frameworks/APIs won't get me to the AppStore, this is for private use/research only. So as for the research purpose I chose MFMessageComposer I want to disable the editing of any inputs both of which are being passed from the…
0
votes
1 answer

How to programatically choose which sim from a dual sim iPhone to send sms?

I am using MFMessageComposeViewController for loading SMS content. But it takes the default number for sending the SMS. Can I change the default number programatically like, Choose Sim 1 or Sim 2 from within the app without depending on iPhone…
0
votes
1 answer

First table cell is covered by contact input field on MFMessageComposeViewController

- (void)sendSmsWithSubject:(NSString *)subject andBody:(NSString *)body { MFMessageComposeViewController *smsCompose = [[MFMessageComposeViewController alloc] init]; smsCompose.subject = subject; smsCompose.body = body; …
loongman
  • 74
  • 8
0
votes
1 answer

Presenting MFMessageComposeViewController/Understanding DispatchQueue.main.async

I'm trying to present the MFMessageComposeViewController after a person selects their contacts. But I'm getting the lldb error with the following message -- *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason:…
0
votes
1 answer

MessageComposeViewController not calling delegate

I've been searching for solutions to my problem without any success... The app I'm developing lets the user play a small quiz game and send the result as a text message. Everything works fine except when the MessageComposeViewController is suppose…
rutini
  • 5
  • 1
  • 3
0
votes
1 answer

App crash when MFMessageComposeViewController is initialisation

I want to send a message through my app. I call the following method on click @IBAction func sendMessage(_ sender: Any) { if (MFMessageComposeViewController.canSendText()) { let composeVC = MFMessageComposeViewController() …
Dilip Jangid
  • 754
  • 1
  • 10
  • 20
0
votes
0 answers

self.presentViewController is not transitioning smoothly and is delayed

I'm having some trouble with my project. Everything works fine regarding features and functions, but i've noticed a delayed reaction and rough transition whenever I call self.presentViewController() on MFMessageComposeVC and CNContactsVC. When…
0
votes
1 answer

Swift 3 - Sending message with image - Undetermined Literal

Currently trying to open MFMessageComposeViewController with an image attached but the typeIdentifier that I have found in older code seems to not be the right fit and I'm not able to find any documentation regarding attaching an image to a message…
lifewithelliott
  • 1,012
  • 2
  • 16
  • 35
0
votes
0 answers

MFMessageComposeViewController no visibe interface for presentModalViewController

I am trying to send an sms programmatically but I get the error no visible interface for presentModalViewController:completion: . The same code works with presentViewController but I need to display the sms dialog as a modal so it will return to my…