I allow my user to select phone numbers in my application. How can I then bring up the iPhone call screen and then if possible, initiate the phone call?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
You’ll have to recreate the dial screen within your application (didn’t take too long for me to do.) Once you have the phone number entered, you’ll need to initiate the phone call by doing:
Note this will only work on the actual phone, and not the simulator.
To create the dialer screen you’ll need to:
UIButtons (for #s 1-9), aUILabelto show the currently entered number, and a “Call” button.UIButtons and add the digit to a local variableNSStringon your ViewController. Update theUILabelwith this number.UIButtonis pressed, take the locally stored # and place the aforementioned method call with it.