투케이2K

134. (Objective-C/objc) AppDelegate supportedInterfaceOrientationsForWindow 사용해 디바이스 화면 세로 고정 실시 본문

Objective-C

134. (Objective-C/objc) AppDelegate supportedInterfaceOrientationsForWindow 사용해 디바이스 화면 세로 고정 실시

투케이2K 2023. 10. 2. 17:53
반응형

[개발 환경 설정]

개발 툴 : XCODE

개발 언어 : OBJECTIVE-C

 

[소스 코드]

// ------------------------------------------------------------------------------
// MARK: - [디바이스 화면 세로 모드 고정 실시]
// ------------------------------------------------------------------------------
-(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{
    //*
    [S_Log _D_WithFilename:[NSString stringWithFormat:@"%s", __FILE__]
                  funcname:[NSString stringWithFormat:@"%s", __FUNCTION__]
               description:@"디바이스 화면 세로 모드 고정 실시"
                      data:nil];
    // */
    return UIInterfaceOrientationMaskPortrait; // [화면 세로 고정]
}
 

[결과 출력]

 

================================================================
LOG :: CLASS PLACE :: AppDelegate.m :: -[AppDelegate application:supportedInterfaceOrientationsForWindow:]
-------------------------------------------------
LOG :: NOW TIME :: 2023-10-02 17:49:43
-------------------------------------------------
LOG :: DESCRIPTION :: 디바이스 화면 세로 모드 고정 실시
================================================================

 

반응형
Comments