????1?????? ???mail
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"mailto://admin@hzlzh.com"]];
????2?????? ?綽phone
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://8008808888"]];
????iOS????????綽???????????
?????????????в???綽???????
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];
?????????????????綽?????????????????iphone??????????綽???檔
?????????·???????????????????????????????????
????UIWebView*callWebview =[[UIWebView alloc] init];
????NSURL *telURL =[NSURL URLWithString:@"tel:10086"];// ò??tel:// ???? tel: ????
????[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
????//???????view??
????[self.view addSubview:callWebview];
?????????????з?????????????????????
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];
????3?????? SMS
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://800888"]];
????4????????? ????? safari
????[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.hzlzh.com"]];
????????phone??????????????SMS ????趨????????????SMS?????
?????????????????????????2?????
????????MessageUI.framework
????#import <MessageUI/MFMessageComposeViewController.h>
???????????MFMessageComposeViewControllerDelegate
????????sendSMS????
//???????????б?
- (void)sendSMS:(NSString *)bodyOfMessage recipientList:(NSArray *)recipients
{
MFMessageComposeViewController *controller = [[[MFMessageComposeViewController alloc] init] autorelease];
if([MFMessageComposeViewController canSendText])
{
controller.body = bodyOfMessage;
controller.recipients = recipients;
controller.messageComposeDelegate = self;
[self presentModalViewController:controller animated:YES];
}
}
// ????????????????
- (void)messageComposeViewController:(MFMessageComposeViewController *)controller didFinishWithResult:(MessageComposeResult)result
{
[self dismissModalViewControllerAnimated:YES];
if (result == MessageComposeResultCancelled)
NSLog(@"Message cancelled")
else if (result == MessageComposeResultSent)
NSLog(@"Message sent")
else
NSLog(@"Message failed")
}
???????????????????????????????
??????.xib ?е?Localization?????chineseok??