placing a call programmatically on iPhone and return to the same app after hangup [duplicate]
问题 This question already has answers here : Make a phone call programmatically (12 answers) Closed 5 years ago . I would lie to place a call in my app (I can use the tel:) but I would like to return to my app where I left after the users hangs up. Is that possible? 回答1: I got this code from Apple site and it works perfectly: -(IBAction) dialNumber:(id)sender{ NSString *aPhoneNo = [@"tel://" stringByAppendingString:[itsPhoneNoArray objectAtIndex:[sender tag]]] ; NSURL *url= [NSURL URLWithString