问题
Is there a way for my app to call a certain number and to play a certain sound?
Thanks.
回答1:
You can call a number by requesting the URL tel://###-###-###, but this will quit your application and launch the iPhone's default phone application. There is no way of playing a sound as your application has exited at that point.
回答2:
[[UIApplication sharedApplication]
openURL:[NSURL URLWithString:@"tel://91-123******"]];
来源:https://stackoverflow.com/questions/1239328/iphone-make-a-call