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