Is there any way to determine when the user comes back to the app from telprompt? If they hit cancel I don't want to do anything but if they hit call when they come back to the app I want to take an action. Thanks.
NSNotificationCenter * center =
[NSNotificationCenter defaultCenter];
[center addObserverForName:UIApplicationDidBecomeActiveNotification
object:nil
queue:[NSOperationQueue mainQueue]
usingBlock:^(NSNotification *note)
{
// use instance flag to know
if (self.isBackfromCalling)
{
// do some stuff
}
}];
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.