Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1037719
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 16, 20262026-05-16T14:53:05+00:00 2026-05-16T14:53:05+00:00

i have created a music greetings application in iphone. I want that when a

  • 0

i have created a music greetings application in iphone. I want that when a user enters his mobile number in the text field and clicks on the send button data from another view should be fetched and send an sms to user’s mobile number.

Please anybody help me in solving this problem

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-16T14:53:06+00:00Added an answer on May 16, 2026 at 2:53 pm

    Apple only supports sending sms through the UI they provide. To do so, first Check that you can send a sms. Use NSClassFromString to detect the presence of MFMessageComposeViewController in case you are deploying to an older version of iOS that does not support this, and check that if MFMessageComposeViewController does exist that canSendText return true. It would return false if the user’s device does not have sms capability:

      if ([[NSClassFromString(@"MFMessageComposeViewController") canSendText]) {
        [self presentMessageComposeViewController];
      }  
    

    If the device and OS support it now present a MFMessageComposeViewController from a view controller in your app. This method should be implement in a subclass of UIViewController that is managing the current view:

    -(void) presentMessageComposeViewController {
        id smsViewController = [[NSClassFromString(@"MFMessageComposeViewController") alloc] init];
            [smsViewController setTitle:NSLocalizedString(@"Your Title",nil)];
        [smsViewController setBody:NSLocalizedString(@"Your Message. urls work too www.example.com",nil)];
        [smsViewController setMessageComposeDelegate: (id)self];
        [self presentModalViewController:smsViewController animated:YES];
        [smsViewController release];
    }
    

    You will also need to implement the delegate method to dismiss the MFMessageComposeViewController:

    - (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result {
        [self dismissModalViewControllerAnimated:YES];
    }
    

    If you need to use your own UI, you are going to have to talk to your own server, or a third party service that can send the sms for you. For example, using the Twilio API (and the ASIHTTPRequest project):

    NSString *urlString = [NSString stringWithFormat:
    @"http://api.twilio.com/2010-04-01/Accounts/%@/SMS/Messages,kYourTwillioSID];
    NSURL = [NSURL urlWithString:urlString];
    SIFormDataRequest *request = [ASIFormDataRequest requestWithURL:url];
    [request setPostValue:yourPhoneNumber forKey:@"TO"];
    [request setPostValue:@yourBody forKey:@"Body"];
    [request setFile:kYourOutgoingTwilioNumber forKey:@"From"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have created a music application in iphone . i want to integrate twitter
I have created a music application in iphone . The App crashes if i
I have created my application under package music. Now I want to change my
I have created an android application that calls (using kSOAP library) a SOAP based
i have created a music application in which there are 90 songs.when i click
I have created an application that read messages with voice. I would like to
I have created a music application in which I have 5 songs added to
I want to use the addmusic example that apple have created for the IPod
I have a grouped category field. The problem is that I've created a search
I have created a music app that plays one of 9 sounds when an

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.