How Can I open phone's keypad from my app

后端 未结 2 888
庸人自扰
庸人自扰 2021-01-26 08:18

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 URLWithStrin         


        
相关标签:
2条回答
  • 2021-01-26 08:48

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

    selectedTextField.keyboardType=UIKeyboardTypePhonePad;
    
    0 讨论(0)
  • 2021-01-26 08:52

    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

    0 讨论(0)
提交回复
热议问题