반응형
Notice
Recent Posts
Recent Comments
Link
투케이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
![](https://blog.kakaocdn.net/dn/0i3En/btrLqXD6UN5/nca2z6oyVIOtuh9tPyOUmk/img.png)
[소스 코드]
- (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");
}
반응형
'Objective-C' 카테고리의 다른 글
Comments