How do I hang up automatically?
I am very interested to know how to hang up automatically. If I press the call button
(this is the code):
-(IBAction)callPhone:(id)sender {
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:phone.text]];
}
I want to hang up a call after 5 seconds automatically. How can i do this?
Thank.
+3
El sinior x
source
to share
2 answers
This is outside the scope of the IOS SDK. You cannot tell the telephone subsystem to do anything. It just calls the system to do something.
+3
Daniel A. White
source
to share
you cannot, you can initiate a call from your application, but you cannot hang up.
+1
user1274038
source
to share