투케이2K

57. (Objective-C/objc) [간단 소스] AppDelegate 앱 딜리게이트 포그라운드 (fore ground) , 백그라운드 (back ground) 상태 확인 본문

Objective-C

57. (Objective-C/objc) [간단 소스] AppDelegate 앱 딜리게이트 포그라운드 (fore ground) , 백그라운드 (back ground) 상태 확인

투케이2K 2022. 9. 5. 17:00
반응형

[개발 환경 설정]

개발 툴 : XCODE

개발 언어 : OBJECTIVE-C

 

[소스 코드]

- (void)applicationDidBecomeActive:(UIApplication *)application {
    printf("\n");
    printf("==================================== \n");
    printf("[AppDelegate >> applicationDidBecomeActive() :: 앱 사용자 응답 준비 확인 실시] \n");
    printf("==================================== \n");
    printf("\n");
}
- (void)applicationWillEnterForeground:(UIApplication *)application {
    printf("\n");
    printf("==================================== \n");
    printf("[AppDelegate >> applicationWillEnterForeground() :: 앱 포그라운드 상태 확인 실시] \n");
    printf("==================================== \n");
    printf("\n");
}
- (void)applicationWillResignActive:(UIApplication *)application {
    printf("\n");
    printf("==================================== \n");
    printf("[AppDelegate >> applicationWillResignActive() :: 앱 사용자 응답 중지 상태 확인 실시] \n");
    printf("==================================== \n");
    printf("\n");
}
- (void)applicationDidEnterBackground:(UIApplication *)application {
    printf("\n");
    printf("==================================== \n");
    printf("[AppDelegate >> applicationDidEnterBackground() :: 앱 백그라운드 상태 확인 실시] \n");
    printf("==================================== \n");
    printf("\n");
}
- (void)applicationWillTerminate:(UIApplication *)application {
    printf("\n");
    printf("==================================== \n");
    printf("[AppDelegate >> applicationWillTerminate() :: 앱 작업 목록 날림 감지 확인] \n");
    printf("==================================== \n");
    printf("\n");
}

 

반응형
Comments