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

Ios6 keyboard shows informal behavior on 'MFMailComposeViewController' and 'MFMessageComposeViewController'

There is some informal behaviour of native keyboard, some extra space shows below it. However this problem is only in iPhone 5 ios6, not in ios7.
1
vote
2 answers

iPhone not sending text programmatically

I made a basic app that for now just has a button that you click, and it brings up the sms composer (ios7 and xcode 5). I think I've handled everything well. The simulator doesn't support sending messages, so I tried on my phone, but the message…
1
vote
1 answer

Strange behavior with message composer on iOS 7

I'm working on an app that sends email and texts from the user's contact list. I have a view controller that presents either a MFMessageComposeViewController or MFMailComposeViewController, with the proper delegates setup. However, the UI that…
1
vote
0 answers

Can't send Video to MFMessageComposeViewController

I have to send Video through message. I attached 30KB size of video. But it alerts "Video is too long". Below i mentioned the code to send video through message. NSString *message = [NSString stringWithFormat:@"Download this…
Arjun Sa
  • 125
  • 2
  • 13
1
vote
1 answer

MFMessageComposer: Knowing How Many Recipients The Message Was Sent Too?

Is there a way to know the amount of recipients the users sent a message too? The only thing I see is - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result But…
KingPolygon
  • 4,753
  • 7
  • 43
  • 72
1
vote
2 answers

Problme Recipients MFMessageComposeViewController

I'm using the following code to send in-app sms. messageController = [MFMessageComposeViewController new]; messageController.messageComposeDelegate = self; [messageController setRecipients:[NSArray arrayWithObjects:...]]; [messageController…
milad sh
  • 139
  • 1
  • 12
1
vote
1 answer

Send a code to Varification Code by sms to user using my iphone

I am working on a application in which I have verify a users number.I will get the user's permission to send message from MFMessageComposeViewController.But I want to hide the code that I am sending in the message body from the user.I read that I…
chakshu
  • 1,372
  • 2
  • 10
  • 21
1
vote
0 answers

MFMessageComposeViewController , MFMailComposeViewController and SLComposeViewController keeps crashing

I got a lot of crash reports on my current app using the following code in my AppDelegate: - (void)prepareFrameworks { if([MFMessageComposeViewController canSendText]) (void)[[MFMessageComposeViewController alloc] init]; …
1
vote
0 answers

Issue With Texting From UIActivitySheet On Some Phones

My app has an action button to pull up a UIActivityViewController. On my test device 5S, it will do everything fine, including texting. However, on my 5C test device, it crashes upon trying to send a Message. Is there something wrong with my code…
1
vote
1 answer

How to specify/add receiver's number in MFMessageComposerViewController?

i have following listing in my code. - (IBAction)sendText:(id)sender { if ([MFMessageComposeViewController canSendText]) { MFMessageComposeViewController *textSheet=[[MFMessageComposeViewController alloc]init]; …
1
vote
1 answer

Sending message with image

Is there any way to use MFMessageComposeViewController or any other controller that may be out there to send a message with an image? MFMessageComposeViewController apparently does not support that but someone may developed some kind of hack out…
Duck
  • 34,902
  • 47
  • 248
  • 470
1
vote
0 answers

How to avoid iMessage in MFMessageViewController

I want to stop iMessage service while sending text sms using MFMessageComposeViewController
1
vote
0 answers

MFMessageComposeViewController inserts a new line at the end

I've made a little app for iOS where I use Apple's MFMessageComposeViewController to send a SMS/iMessage. Very soon I saw that it always inserts a new line (\n) at the end of the text to be sent. I checked how it does in other apps which are using…
johk95
  • 873
  • 10
  • 28
1
vote
3 answers

How to send a message in iPhone devices?

Currently i am working in iPhone application, Using MFMessageComposeViewController to develop this application and its working fine. But i want, message compose screen don't show on the screen, then the Message send programmatically , How to do…
SampathKumar
  • 2,525
  • 8
  • 47
  • 82
1
vote
1 answer

MonoTouch: consecutive views

I'm currently trying to display the email view (MFMailComposeViewController) after the SMS one (MFMessageComposeViewController), after the user send the message or cancel.. The MFMessageComposeViewController is closed correctly, but the…