I need to show a phone number in a view and that when clicked a call is initiated. Currently I’m using an UILabel and I have no idea how to do it.
Is this the correct control? If no which one would be?
If it’s the correct one, how can I do it?
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.
An
UILabelcould be used (kind of showing a link) but anUIButtonmight be more appropriate.You can find the code to initiate the code from this question (and answer).
Using a
UIButtonand the code from above would give you: