: -
1) [[UIApplication sharedApplication] openURL: [NSURL URLWithString: @ "tel: // 9912345678"]];
2) You can use UITextViewand enable phone detection. After that, the phone number will look like a hyperlink. Use the following code.
mytextview.text = @"9943586256";
mytextview.dataDetectorTypes = UIDataDetectorTypePhoneNumber;
mytextview.editable=NO;
Useful if you want to show the phone number inside the user cell of the table.
I would really like the second one because of the requirements in some project. When I give the phone number in UITextViewand when pressed, which will start the call.
source
share