读书人

iphone 拨通电话的API

发布时间: 2012-09-03 09:48:39 作者: rapoo

iphone 拨打电话的API

今天在网上看到这个,先留着

+ (void) makeCall:(NSString *)phoneNumber
{????
????NSURL *phoneNumberURL = [NSURL URLWithString:[NSString stringWithFormat:@"tel:%@", phoneNumber]];
????NSLog(@"make call, URL=%@", phoneNumberURL);
????
????[[UIApplication sharedApplication] openURL:phoneNumberURL];????
}

读书人网 >Iphone

热点推荐