在应用程序运行时收到电话时会调用哪种方法?

时间:2015-04-09 16:18:31

标签: ios

我想知道当我们的应用程序在iphone设备和收到的电话上运行时,将调用哪种方法? appDelegate中的任何方法都是在收到电话后调用我们的应用程序进入后台状态???

2 个答案:

答案 0 :(得分:5)

- (void)applicationWillResignActive:(UIApplication *)application {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}

答案 1 :(得分:1)

我认为您正在寻找的是:

@property(nonatomic, copy) void (^callEventHandler)( CTCall *)

Documentation