Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Call a number through application in iPhone

Tags:

ios

iphone

I want to call a number within the app.

like image 413
Suresh Varma Avatar asked Feb 02 '26 05:02

Suresh Varma


2 Answers

Please follow the below link for the same

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://9016098909891"]];
like image 95
Suresh Varma Avatar answered Feb 03 '26 19:02

Suresh Varma


NSString* theNumber = @"9994441234";
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: [NSString stringWithFormat: @"tel:%@", theNumber]]];
like image 33
Sam Dolan Avatar answered Feb 03 '26 19:02

Sam Dolan



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!