Skip to content

상태 변화에 따라 다른 동작을 처리하기 위한 앱델리게이트 메서드들을 설명하시오. #17

Open

Description

@Glsme

func application(_:didFinishLaunchingWithOptions:)

  • 앱이 실행된 직후 사용자의 화면에 보여지기 직전에 호출.


func applicationDidBecomeActive(_ application: UIApplication)

  • 앱이 Active 상태로 전환 직후 호출.


func applicationWillTerminate(_ application: UIApplication)

  • 앱이 종료되기 직전에 호출


func applicationWillEnterForeground(_ application: UIApplication)

  • 앱이 Active상태가 되기 직전에 호출. (화면에 보여지기 직전에 호출)


func applicationDidEnterBackground(_ application: UIApplication)

  • 앱이 백그라운드 상태로 전환된 직후 호출.


func applicationWillResignActive(_ application: UIApplication)

  • 애플리케이션이 InActive 상태로 전환되기 직전에 호출 (Ex: task 일시정지, 타이머 비활성화, 일시정지(게임)할 때 적용 가능)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions