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! While you're at it, check out some resources Treehouse students have shared here.

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

iOS

Click 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

Try this: [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://123456789"]];

Hi 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 !

Thank you. But it dosen't work on iOS. :(

What about

<a href="callto:012345678">Call me </a>

Thanks again. But not working. Think it needs to be objectiv C code in xcode?