2011-04-12 80 views

回答

1

iphone將使用下面列出的任一格式撥打號碼。

[[UIApplication sharedApplication] 
        openURL:[NSURL URLWithString:@"tel://15415551234"]]; 

[[UIApplication sharedApplication] 
        openURL:[NSURL URLWithString:@"tel:15415551234"]]; 

[[UIApplication sharedApplication] 
        openURL:[NSURL URLWithString:@"tel:1-541-555-1234"]]; 

Link for Apple documentation on the tel: url scheme