0

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

Thanks.

Ilya Suzdalnitski
  • 52,598
  • 51
  • 134
  • 168

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
  • 176,543
  • 40
  • 303
  • 368
1
[[UIApplication sharedApplication]
  openURL:[NSURL URLWithString:@"tel://91-123******"]];
kba
  • 19,333
  • 5
  • 62
  • 89
Ranga
  • 821
  • 4
  • 11
  • 20