IOS ?????????綽????????
???????????? ???????[ 2014/8/1 9:57:20 ] ????????IOS ????????
????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??
??????
???·???
??????????????????
2023/3/23 14:23:39???д?ò??????????
2023/3/22 16:17:39????????????????????Щ??
2022/6/14 16:14:27??????????????????????????
2021/10/18 15:37:44???????????????
2021/9/17 15:19:29???·???????·
2021/9/14 15:42:25?????????????
2021/5/28 17:25:47??????APP??????????
2021/5/8 17:01:11