I know that there are three ways to call the system call can be realized:
1. NSString * callString = [NSString stringWithFormat: @ "tel:% @", number];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: callString]];
This will pop-up boxes, but after the kick does not automatically return to our application
2. UIWebView * callWebview = [[UIWebView alloc] init];
NSString * callString = [NSString stringWithFormat: @ "tel :/ /% @", number];
NSURL * telURL = [NSURL URLWithString: callString];
[CallWebview loadRequest: [NSURLRequest requestWithURL: telURL]];
3. NSString * callString = [NSString stringWithFormat: @ "telprompt:% @", number];
[[UIApplication sharedApplication] openURL: [NSURL URLWithString: callString]];
But behind these two, they will first pop up a message box out how to put this prompt steps to remove ah, I see the QQ address book is done
Reply:
Do not understand. . .
Is not to be considered ABAddressbook UI controls? This control was called out display contacts that have phone contact information, click the phone number that line cell, can be directly dialed. . . .
Reply:
number has been given, do not need to go to find contacts, but still thank you for your answer.
No comments:
Post a Comment