iOS Tutorial: make call from app programatically

9 02 2013

Making call from iOS requires just two lines of code. These will make call without asking a user, and after the call has ended, the control will not come back to your app (see how to come back to app in further section)

Make a call initiated from app

- (void) dialNumber:(NSString*) number{
	number = [@"tel://" stringByAppendingString:number];
	[[UIApplication sharedApplication] openURL:[NSURL URLWithString:number]];

Notice, that the number string should contain digits only.

Come back to your app after call has ended

The prefix:


used instead of prefix:


in phone number URL will cause two things:

  • user will be prompted if he wants to make a call
  • after the call, the control will come back to your app

Did I help you?
I manage this blog and share my knowledge for free sacrificing my time. If you appreciate it and find this information helpful, please consider making a donation in order to keep this page alive and improve quality

Donate Button with Credit Cards

Thank You!



5 responses

12 12 2013
Nilesh Kumar

Thanks buddy it was really helpful

17 02 2014
Shwe Hlaing

So so… thank you so much :D

28 02 2014

can we use this method for simulator…?

28 02 2014
Jacek Milewski

It won’t work – simulator lacks SIM card

24 06 2014

its awesome can we are doing receiving the call in our app

Give Your feedback:

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: