Search code examples
iosobjective-cswiftlifecycle

Is there any life-cycle graph for Swift look like same as we know for Objective-C?


We know iOS life-Cycle as below Graph with Objective-C:

enter image description here

e.g. where is main() in Swift project , or where is AppDelegate.swift's functions?


Solution

  • It's the same because it's not a language depending life-cycle. It's an Application life-cycle.

    You could change the language, but the way application works still be the same. If there were any differences, you won't be able to use swift/objc in the same project.

    All calls are still there, but they change the way they look (but not named) a bit because of swift syntax. You could look them up here: Looking to understand the iOS UIViewController lifecycle