0

From my app I want to open the phone's dialer keypad which is used to make phone call. I tried as

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

But it does not open the keypad of phone.

Daniel
  • 23,129
  • 12
  • 109
  • 154
razibdeb
  • 1,211
  • 1
  • 10
  • 12
  • Do you want to just open a phone style keypad? or do you want to automatically initiate a phone call after the user types the number in? – gamozzii Aug 10 '12 at 06:32
  • @gamozzii none of them, I want to open the dialer which is used to type number and make call by default in iphone. Thanks. – razibdeb Aug 10 '12 at 06:43

2 Answers2

0

Its not possible to open the Phone's keypad. You can design your own phone pad in your view controller, add DTMF Tones for sounds and make it look like a phone's keypad. If you want your own phonepad and want to have it within your app then this is the only way.

It is possible to open the Phone app and execute a call if you want,refer to the link below to know how its done.

Make a phone call programmatically

Community
  • 1
  • 1
Lalith B
  • 11,843
  • 6
  • 29
  • 47
-1

You can use it by setting a property in UITextField keyboardtype .

selectedTextField.keyboardType=UIKeyboardTypePhonePad;
Daniel
  • 23,129
  • 12
  • 109
  • 154
Dushyant Singh
  • 721
  • 4
  • 13
  • @daniel Actually there is no textfield in my view. I want to open the default dialer application of iphone. thanks. – razibdeb Aug 10 '12 at 06:31