opening dial pad for calling number user want

ios

Solution

No you cant do this in iOS . iPhone SDK not gives you direct access to dial a numbers from the application .The one way to achieve this is take a text field

textfield.keyboardType = UIKeyboardTypePhonePad;

and

[[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel://%@",textfield.text]]];

You have to see the format for entering the number.

Problem

i want to open dial pad when user click on call button and then user enter phone number and call it i know we can make call like this ``` [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://2135554321"]]; ``` but i want to open dial pad and then let user enter number and press call button to call if this is not possible then want to do something like my app open direct to dail pad then user call it and then it should redirect to my app

Original source