Skip to content

Instantly share code, notes, and snippets.

@gaelfoppolo
Last active July 23, 2017 21:47
Show Gist options
  • Save gaelfoppolo/72103d70e019dbfcc3986a6aa9b00afa to your computer and use it in GitHub Desktop.
Save gaelfoppolo/72103d70e019dbfcc3986a6aa9b00afa to your computer and use it in GitHub Desktop.
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
/* ... */
NotificationCenter.default.addObserver(self,
selector: #selector(AppDelegate.applicationDidTimeout(notification:)),
name: .appTimeout,
object: nil
)
/* ... */
return true
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment