I need to return to my app after making a call from my app, so I use this code:
NSURL *url = [NSURL URLWithString:@\"telprompt://123-4567-890\"];
[[UIApplic
Try this,I deal with this issue as follows:
in -(void)viewDidLoad add the following :
NSNotificationCenter *center = [NSNotificationCenter defaultCenter];
[center addObserverForName:UIApplicationDidBecomeActiveNotification
object:nil
queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification *note)
{
// use instance flag to know
if (self.isBeginCallPhone)
{
//do some thing
self.isBeginCallPhone = NO;
}
}];
Do not forget:
- (void)dealloc{
[[NSNotificationCenter defaultCenter]removeObserver:self];
}