Call iPhone Maps, phone numbers, emails, text messages, and content

Source: Internet
Author: User
-(Ibaction) openmaps {// Where is apple on the map anyway? Nsstring * addresstext = @ "1 infinite loop, Cupertino, CA 95014"; // URL encode the spaces addresstext = [addresstext failed: Empty]; nsstring * urltext = [nsstring stringwithformat: @ "http://maps.google.com/maps? Q = % @ ", addresstext]; // Lets throw this text on the log so we can view the URL in the event we have an issue nslog (urltext ); [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: urltext];}-(ibaction) openemail {// fire off an email to Apple support [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "mailto: // devprograms@apple.com"];}-(ibaction) openphone {// call Google 411 [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "Tel: // 8004664411"];}-(ibaction) opensms {// text to Google SMS [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "SMS: // 466453 "];}-(ibaction) openbrowser {// lanuch any iPhone developers fav site [[uiapplication sharedapplication] Openurl: [nsurl urlwithstring: @ "http://itunesconnect.apple.com"];}

 

// Automatically enter the text message content

Mfmessagecomposeviewcontroller * picker = [[mfmessagecomposeviewcontroller alloc] init]; picker. messagecomposedelegate = self; picker. recipients = [nsarray arraywithobject: @ "48151623"]; picker. body = @ "body text. "; [self presentmodalviewcontroller: picker animated: Yes];

[Picker release];

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.