3

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?

Cœur
  • 37,241
  • 25
  • 195
  • 267
AMH
  • 461
  • 5
  • 12
  • What do you mean by *"where is AppDelegate.swift functions?"*? `AppDelegate.swift` contains the `UIApplicationDelegate` methods. – rmaddy Sep 03 '18 at 05:29
  • Possible duplicate of [Where does a Swift iOS application begin its life?](https://stackoverflow.com/questions/29722672/where-does-a-swift-ios-application-begin-its-life) – nayem Sep 03 '18 at 05:32
  • You will find more on this: [What does “@UIApplicationMain” mean?](https://stackoverflow.com/q/24516250/3687801) – nayem Sep 03 '18 at 05:34

1 Answers1

2

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

Sulthan
  • 128,090
  • 22
  • 218
  • 270
Taier
  • 2,109
  • 12
  • 22