Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community!
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Kalle Kod
37 PointsClick to call
Is there a simular method like the sms and email one? Where you click and call a number with your native apple phone app
4 Answers

Fernando Claussen
9,324 PointsTry this:
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];

Yorick Toma
742 PointsHi there,
Just the way you would use a mail link:
<a href="mailto:example@example.com">Contact me</a>
You are able to use
<a href="tel:012345678">Call me</a>
To place phonecalls, i am assuming this also works on iOS ( Just tested on android ) Also maybe Skype has another way of handling these ones.
Good luck !

Kalle Kod
37 PointsThank you. But it dosen't work on iOS. :(

Yorick Toma
742 PointsWhat about
<a href="callto:012345678">Call me </a>

Kalle Kod
37 PointsThanks again. But not working. Think it needs to be objectiv C code in xcode?