打電話的代碼:
@interface ViewController ()
@property (nonatomic,strong) UIWebView *callWebView;
@end
if (_callWebView == nil) {
_callWebView = [[UIWebView alloc]initWithFrame:CGRectZero];
[_callWebView loadRequest:[NSURLRequest requestWithURL:[NSURL URLWithString:@"tel:183385277XX"]]];
[self.view addSubview:_callWebView];
}
打電話會(huì)出現(xiàn)這個(gè)柒爵,雖然不礙事但是對(duì)于有潔癖的程序員是不可以接受的役电,誰有解決的辦法請(qǐng)?jiān)u論出來。
發(fā)短信代碼:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"sms://18338527738"]棉胀;
評(píng)價(jià)APP代碼:
NSString *appid = @"725296055";//填寫appid
NSString *str = [NSString stringWithFormat:
@"itms-apps://itunes.apple.com/cn/app/id%@?mt=8", appid];