Skip to content
This repository was archived by the owner on Jun 17, 2018. It is now read-only.

Commit a399863

Browse files
committed
Modify app delegate method
1 parent 428438f commit a399863

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

Example/PagingMenuControllerDemo/AppDelegate.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
1515

16-
fileprivate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
16+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool {
1717
// Override point for customization after application launch.
1818
return true
1919
}
20-
20+
2121
func applicationWillResignActive(_ application: UIApplication) {
2222
// 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.
2323
// 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.

Example/PagingMenuControllerDemo2/AppDelegate.swift

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,8 @@ import UIKit
1212
class AppDelegate: UIResponder, UIApplicationDelegate {
1313

1414
var window: UIWindow?
15-
16-
fileprivate func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: Any]?) -> Bool {
15+
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey : Any]?) -> Bool {
1716
// Override point for customization after application launch.
18-
1917
window = UIWindow(frame: UIScreen.main.bounds)
2018
let viewController = RootViewControoler()
2119
let navigationController = UINavigationController(rootViewController: viewController)
@@ -24,7 +22,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
2422

2523
return true
2624
}
27-
25+
2826
func applicationWillResignActive(_ application: UIApplication) {
2927
// 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.
3028
// 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.

0 commit comments

Comments
 (0)