Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dial a phone number with an access code programmatically in iOS

How can I dial a phone number that includes a number and access code programmatically in iOS?

For example:

number: 900-3440-567
Access Code: 65445

like image 400
Shahid Aslam Avatar asked Mar 28 '11 08:03

Shahid Aslam


1 Answers

UIDevice *device = [UIDevice currentDevice]; if ([[device model] isEqualToString:@"iPhone"] ) {     [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"tel:130-032-2837"]]]; } else {     UIAlertView *notPermitted=[[UIAlertView alloc] initWithTitle:@"Alert" message:@"Your device doesn't support this feature." delegate:nil cancelButtonTitle:@"OK" otherButtonTitles:nil];     [notPermitted show];     [notPermitted release]; } 
like image 173
vijay adhikari Avatar answered Oct 11 '22 13:10

vijay adhikari