How to create a mobile phone number

Outside the UIWebView, how can I make the phone number clickable, like UILabel or UIButton?

+2


a source to share


2 answers


This code can be used to resolve a call from your application.



[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://0123456789"]];

      

+4


a source


create a UIButton of custom type and as the Caption set the number to display ... so it will only display one number (the button will not be visible ...) and on a button click event Call that specific number



[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"tel://1456987452"]];

      

+1


a source







All Articles