ios application life cycle
Every iOS Developer, should know application lifecycle. Application lifecycle helps to understand overall app behaviour. The main point of entry into iOS apps is UIApplicationDelegate . UIApplicationDelegate is a protocol that your app has to implement to get notified about user events such as app launch, app goes into background or foreground, app is terminated, a push notification was opened, etc. Application Lifecycle Example: When an iOS app is launched the first thing called is application: willFinishLaunchingWithOptions:-> Bool . This method is intended for initial application setup. Storyboards have already been loaded at this point but state restoration hasn’t occurred yet. Launch application: didFinishLaunchingWithOptions: -> Bool is called next. This callback method is called when the application has finished launching and restored state and can do final initialization such as creating UI. applicationWillEnterForeground: is called...