ios - Call using an app when uibutton is clicked -


i have app displays telephone number, , number in uibutton. when button clicked, want call. best way it?

get text button nsurl , pass in:

let url = nsurl(string: button.currenttitle) uiapplication.sharedapplication().openurl(url) 

Comments

Popular posts from this blog

javascript - Karma not able to start PhantomJS on Windows - Error: spawn UNKNOWN -

c# - Display ASPX Popup control in RowDeleteing Event (ASPX Gridview) -

Nuget pack csproj using nuspec -