CocoaHeadsBrasil / forum

Portando discussões feitas em grupos (Facebook, Google Groups, Slack, Disqus) pra issues
MIT License
7 stars 3 forks source link

Pessoal vcs sabem qual o método é disparado quando o app recebe uma interrupção de alarme ou de chamada? #forumCocoaHeads #5

Open ezefranca opened 8 years ago

ezefranca commented 8 years ago



July 01, 2016 at 11:18AM
ezefranca via Twitter

barbosa commented 8 years ago
optional func applicationWillResignActive(_ application: UIApplication)

This method is called to let your app know that it is about to move from the 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 app and it begins the transition to the background state.

https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegate_Protocol/#//apple_ref/occ/intfm/UIApplicationDelegate/applicationWillResignActive: