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

EXC_BAD_ACCESS at MFMessageController

I have got this error when I press send button from the message composer sheet, my piece of code is this: -(void)ComposerSheet { picker = [[MFMessageComposeViewController alloc] init]; picker.messageComposeDelegate = self; [self…
0
votes
0 answers

Customizing the imessage screen inside of my app

I have the imessage launched inside of my app. I was wondering if it is possible to customize the screen ( have my own background etc.,)
0
votes
1 answer

How to write code to pick the selected phone num address from phone book to send msg from my iphone application

I have implemented send sms code like this... it's FINE but the problem is in picking the Number of the recipient . in my code number is the value entered in a textfiled, but i wan t to get the number from the phone book contacts. How retrieve…
0
votes
1 answer

iPhone iOS 5 SDK in app SMS error

thanks in advance every time I call to create an in app SMS i get the following error... Application tried to push a nil view controller on target . This is the code I have that worked in OS 4 SDK... MFMailComposeViewController…
OscarTheGrouch
  • 2,374
  • 4
  • 28
  • 39
-1
votes
1 answer

MFMessageComposer cancel button not visible in iOS 11

The cancel button on right top corner after a message composer has been presented is not visible in iOS 11 devices. As shown in the screenshot, cancel button works but is not visible. Once we press on it, the screen dismisses.
rajtharan-g
  • 432
  • 5
  • 14
-1
votes
2 answers

How to send sms and call from app?

I have situation where On clicking on app icon i have to send sms and call to a 5 numbers....do we have any third party api's or we have predefined classes in ios?
-1
votes
2 answers

Add MFMessageComposeViewControllerTextMessageAvailabilityDidChange notification

I want to set MFMessageComposeViewControllerTextMessageAvailabilityDidChange notification to observer. I am new to swift so, i am not clear about how to do that. Please help me.
Shariif Islam
  • 259
  • 1
  • 2
  • 15
-1
votes
1 answer

Sim Card detection is not working in my iphone app?

My code is: if(![MFMessageComposeViewController canSendText]) { UIAlertView *warningAlert = [[UIAlertView alloc] initWithTitle:@"Error" message:@"Your device doesn't support SMS!" delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil]; …
ragu
  • 133
  • 2
  • 10
-1
votes
2 answers

XCode: No visibile @interface for (xxx) declares the selector (xxx)

I'm trying to add functionality to add an attachment to an sms message. The following if([MFMessageComposeViewController canSendAttachments]) { if(args[@"attachments"]) { NSString *attachmentData = [RCTConvert…
duwerq
  • 99
  • 9
-1
votes
1 answer

How do I attach an mp3 to MFMessageComposeViewController?

I have multiple mp3 files in my project. I would like to know how I can access this file (file path) and attach it to the text message I will be sending out. Does anybody know how to do this? Please provide some code if possible!
JohnCarp
  • 49
  • 8
-1
votes
1 answer

How to set the encoded string data to MFMessageComposeViewController

I have to set the following string data to body of (SMS) MFMessageComposeViewController, can any one help me to get the solution ? NSData *imageData = UIImagePNGRepresentation(image1); NSString* str = [[NSString alloc] initWithData:imageData…
-2
votes
1 answer

Cannot convert type '[String: Any Object]' to expected type 'String'

Trying to get the phone number string out of CNContacts. I pull up a contact picker view controller and when the user selects multiple contacts, I create a message compose view controller. I need to create an array of strings to pass along as the…
-2
votes
1 answer

MFMessageComposeViewController shows an black screen

I'm using the following code to send in-app sms. NSString *message = @"this ia the message"; MFMessageComposeViewController *TextSheet = ([MFMessageComposeViewController alloc]); TextSheet.messageComposeDelegate = self; [TextSheet…
-2
votes
1 answer

MFMessageComposeViewController send in-app text message get phone number

I'm using MFMessageComposeViewController to send in-app text message,it there any way to get the number that send to? Private API is OK. Thank you in advance!
jxdwinter
  • 2,339
  • 6
  • 36
  • 56
-2
votes
2 answers

Send message from iPhone without open MFMessageComposeViewController

I have made one application, In my application I want to send message on some mobile no. I know, this is done using MFMessageComposeViewController. but, can we send message without open the MFMessageComposeViewController ? Can we use…
1 2 3
13
14