Life Cycle

UIView Life Cycle In iOS Example

After you create a Xcode project use swift single view app template, it will create a AppDelegate.swift file and a ViewController.swift file. The AppDelegate.swift file contains this iOS app’s life cycle method which will be triggered when the app’s state is changed. You can read article iOS Application Life Cycle Example to learn more. The …

UIView Life Cycle In iOS Example Read More »

How To Make iOS App Run At Background Or Exit When Press Home Button

When you press iOS device’s home button, you may want your iOS app go to background and resume running later, or you may want your iOS app terminate and exit at once. This article will tell you how to implement it with example. But first, you had better read article iOS Application Life Cycle Example …

How To Make iOS App Run At Background Or Exit When Press Home Button Read More »

Android Fragment Lifecycle

Android fragment belongs to activity. Like activity, fragment also has it’s own life cycle. In one fragment life cycle, there are four states, running state, pause state, stop state and destroy state. Each state has it’s own call back method in fragment class.