Open Judy-999 opened 1 year ago
앱이 종료되려고 할 때 delegate에게 알림
delegate에게 앱이 foreground로 진입하려 함을 알림
applicationDidBecomeActive(_:)
메서드로 이어짐delegate에게 앱이 활성화(avtive)되었음을 알림
delegate에게 앱이 곧 비활성화될 것을 알림
앱이 background에 있음을 알림
applicationWillResignActive : active -> inactive 상태로 전환시 inactive전환 직전 실행 : 잠시 전환되는 경우
applicationDidEnterBackground : background 상태전환 직후
applicationWillEnterForeground : background -> foreground 상태로 전환시 foreground직전
applicationDidBecomeActive : active상태직후 : 화면으로 돌아올 때마다 실행
applicationWillTerminate : 앱 종료시
willFinishLaunching : didFinish전에 호출되는 함수
didFinishLaunching : 앱 실행시 1번만 실행되는 함수
application 메서드
는 앱이 최초 실행되고, 사용자의 화면에 보여지기 직전에 호출되는 메서드 입니다.
applicationWillResignActive 메서드
는 앱이 Inactive 상태로 전환되기 직전에는 호출되는 메서드 입니다.
applicationWillEnterForeground 메서드
는 앱이 화면에 보여지기 직전에 호출되는 메서드 입니다.
applicationDidBecomeActive 메서드
는 앱이 Active 상태로 전환된 직후 호출되는 메서드 입니다.
applicationDidEnterBackground 메서드
는 앱이 Background 상태로 전환된 직후 호출되는 메서드 입니다.
마지막으로 applicationWillTerminate 메서드
는 애플리케이션이 종료되기 직전에 호출되는 메서드입니다.
꼬리질문