首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 移动开发 > Iphone >

iphone 拨通电话的API

2012-09-03 
iphone 拨打电话的API今天在网上看到这个,先留着+ (void) makeCall:(NSString *)phoneNumber{????????NSUR

iphone 拨打电话的API

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

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

热点排行