opening dial pad for calling number user want

前端 未结 2 1587
无人共我
无人共我 2021-01-14 17:42

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

[[UIApplica         


        
2条回答
  •  醉梦人生
    2021-01-14 18:18

    Why not create a UIView that has a "UITextField" and when the text field comes up, have the keyboard set to only be numbers (i.e. pretty much the same thing as the dialpad).

    And once they are done entering in the number, then you can call the "openURL" line you have above.

提交回复
热议问题