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?



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.



you cannot, you can initiate a call from your application, but you cannot hang up.



All Articles