0

Is there a way for my app to call a certain number and to play a certain sound?

Thanks.

Ilya Suzdalnitski
  • 51,312
  • 50
  • 131
  • 167

2 Answers2

4

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.

ceejayoz
  • 171,474
  • 40
  • 284
  • 355
1
[[UIApplication sharedApplication]
  openURL:[NSURL URLWithString:@"tel://91-123******"]];
kba
  • 19,080
  • 5
  • 59
  • 87
Ranga
  • 813
  • 4
  • 11
  • 20