What the equivalent of activity life cycle in iOS?

Chulo picture Chulo · Mar 10, 2015 · Viewed 24.1k times · Source

Actually, I would say that both iOS ViewControllers and Android Activities have their lifecycle methods. For example an equivalent of ViewController.viewDidLoad() is Activity.onCreate() ?

Else I still need to know the equivalent of the other :

  • OnStart()
  • OnRestart()
  • OnResume()
  • OnStop()
  • OnDestroy()
  • OnPause()

Answer

Jorgesys picture Jorgesys · Mar 10, 2015

This is a comparison between the lifecycle of Android vs iOS:

enter image description here

  • Note: viewDidUnload is deprecated after iOS 6