투케이2K

138. (Objective-C/objc) [간단 소스] AppDelegate 에서 앱 메모리 로드 수행 중 Thread sleep 스레드 슬립 타임 지정 수행 본문

Objective-C

138. (Objective-C/objc) [간단 소스] AppDelegate 에서 앱 메모리 로드 수행 중 Thread sleep 스레드 슬립 타임 지정 수행

투케이2K 2023. 11. 8. 21:16
반응형

[개발 환경 설정]

개발 툴 : XCODE

개발 언어 : OBJECTIVE-C

 

[소스 코드]

 

// ------------------------------------------------------------------------------
// MARK: - [앱 프로세스 완료 및 앱 실행 실시]
// ------------------------------------------------------------------------------
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
    NSString *SCHEME_KEY = [[NSUserDefaults standardUserDefaults] objectForKey:@"SCHEME_KEY"];
    [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__]
            M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__, __LINE__]
            description:@"앱 프로세스 완료 및 앱 실행 실시"
            data:[NSArray arrayWithObjects: [NSString stringWithFormat:@"SCHEME_KEY :: %s", SCHEME_KEY.description.UTF8String], nil]];
    
    
    // -----------------------------------------
    // [스레드 정지]
    // -----------------------------------------
    [NSThread sleepForTimeInterval:1.0f];
    // -----------------------------------------
    
    
    // -----------------------------------------
    return YES;
    // -----------------------------------------
}

 

반응형
Comments