Call to a phone number through iPhone App

Posted by Md. Faisal Rahman on Stack Overflow See other posts from Stack Overflow or by Md. Faisal Rahman
Published on 2010-05-12T13:00:43Z Indexed on 2010/05/12 13:04 UTC
Read the original article Hit count: 464

Hi iPhone developers, I want to add a feature in my iPhone app, the are:

  1. call to a phone number in my app
  2. play a recorded mp3 voice to that number
  3. after call end, relaunch the previous app

I know I have to use following code snipt for dialing to a number XXXXXX:

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

My be play record not worked, as my app will terminate when call dial launch. is there any way to do this?

And, after call ended, or call failed will my previous app relaunch?

please answer ASAP.

© Stack Overflow or respective owner

Related posts about iphone

Related posts about iphone-sdk