-(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];