Swift 2 – Make phone call from App

Apple updated its guidelines a while back so that if you want press a button in your App to then make a phone call, it must prompt first to ask the user for confirmation that they wish to make the call.

After hours and hours of trying to make my own UIAlertController and really struggling with the Confirm button not running the function to actually make the call, I decided to do a lot more googling.

Turns out there is a fantastically simple way to use the built-in prompt.

if let url = NSURL(string: “telprompt://01234567890”)

Developing Applications in iOS Free eBook

I found these books online and thought I should re-post it as they took a lot of finding. According to the original post author where I downloaded these from the books are now free to distribute as they have been superseded by books about the new versions of iOS. If this original statement was in error, please contact me and I will ensure they are removed immediately.

Addison-Wesley Professional Programming in Objective-C 2.0 2nd

APress Learn Objective-C on the Mac