Dial Call When Tap To Button In Objective C
{
NSString *call=sender.titleLabel.text;
NSURL *phoneUrl = [NSURL URLWithString:[[NSString stringWithFormat:@"telprompt:%@",call] stringByReplacingOccurrencesOfString:@" " withString:@""]];
[[UIApplication sharedApplication] openURL:phoneUrl];
}
Comments
Post a Comment
Thank You.