Telprompt without warning

My application needs to dial, and I know that telprompt will return to the application after dialing. But it will warn the user every time you want to call the number, is there a way to directly call the number without displaying a warning?

+4
source share
2 answers

You can call using the following code: -

 NSString *value =@ "9999999999";//your telnumber NSURL *url = [[ NSURL alloc ] initWithString:[NSString stringWithFormat:@"tel://%@",value]]; NSLog(@"currunt number%@",url); [[UIApplication sharedApplication] openURL:url]; 
+4
source

hope this helps a little more

tel directly calls this number without confirmation and does not return to the application after the call is completed, so you can use telprompt .

 PhoneNumber=@ "999999999"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString:[NSString stringWithFormat:@"telprompt://%@", PhoneNumber]]]; 
+1
source

All Articles