Apple-CS-interview / iOS-CS-interview

7 stars 0 forks source link

UIApplication 객체의 컨트롤러 역할은 어디에 구현해야 하는가? #49

Open vichye-1 opened 5 months ago

vichye-1 commented 5 months ago

UIApplicationMain 함수

Untitled

출처

ronick-grammer commented 5 months ago

UIApplication 객체의 컨트롤러 역할은 어디에 구현해야 하는가?

@UIApplicationMain(iOS 12 이전 버전) 혹은 @main(iOS 12 이상 버전) 어노테이션이 붙은 클래스는 어플리케이션의 진입점이 되며, UIApplicationDelegate 를 채택하여 델리게이트 메서드를 구현하여 UIApplication 객체의 컨트롤러 역할을 하게 된다. iOS 는 기본적으로 AppDelegate 라는 이름을 가진 클래스가 이 역할을 수행한다.

📝 참고 사이트