목록Objective-C (144)
투케이2K
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // [try catch 구문 정의 실시] @try { // --------------------------------------------- // [로직 처리 실시] // --------------------------------------------- //* dispatch_async(dispatch_get_main_queue(), ^{ UIWindow *window = [[[UIApplication sharedApplication] windows] objectAtIndex:0]; CGFloat height = window.windowScene.statusBarManager.statusBarFram..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] UNUserNotificationCenter *center = [UNUserNotificationCenter currentNotificationCenter]; [center setBadgeCount:0 withCompletionHandler:^(NSError * _Nullable error) { if (error != NULL){ [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__, __LINE__] description:@"IOS 17 이상 : 뱃지..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] // ------------------------------------------------------------------------------ - (void)testMain { [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__,..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ----------------------------------------- // [available 버전 분기 처리 수행] // ----------------------------------------- if (@available(iOS 17, *)) { } else { } // -----------------------------------------
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ----------------------------------------- // [SEARCH FAST] : [빌드 타입 확인 실시] // ----------------------------------------- #ifdef DEBUG [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__, __LINE__] description:@"빌드 타입 확인 실시 : DEBUG 실행" data:nil]; #else [S_Log _D_WithC_:[NSS..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] // ------------------------------------------------------------------------------ - (void)testMain { [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__,..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [앱 프로세스 완료 및 앱 실행 실시] // ------------------------------------------------------------------------------ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { NSString *SCHEME_KEY = [[NSUserDef..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // [try catch 구문 정의 실시] @try { // [비동기] : [즉시] : [로직 처리 실시] dispatch_async(dispatch_get_main_queue(), ^{ }); // [비동기] : [딜레이] : [로직 처리 실시] dispatch_after(dispatch_time(DISPATCH_TIME_NOW, 10 * NSEC_PER_SEC), dispatch_get_main_queue(), ^{ // [10 초 딜레이 실행] }); } @catch (NSException *exception) { NSLog(@"\n[NSException : 예외 상황 발생] : %s\n", exce..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] // ------------------------------------------------------------------------------ - (void)testMain { [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION__,..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [뷰 로드 실시] // ------------------------------------------------------------------------------ - (void)viewDidLoad { [super viewDidLoad]; [S_Log _D_WithC_:[NSString stringWithFormat:@"%s", __FILE__] M_:[NSString stringWithFormat:@"%s :: %d", __FUNCTION..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------------------------------------------------ // MARK: - [디바이스 화면 세로 모드 고정 실시] // ------------------------------------------------------------------------------ -(UIInterfaceOrientationMask)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window{ //* [S_Log _D..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [배열 선언 실시] NS..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [날짜 변수 선언 실시]..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [string to da..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [초기 변수 선언 실시 ..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [초기 변수 선언 실시]..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [UIColor 선언 실..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] @implementation AppDelegate UIStoryboard *storyBard_; - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { //[[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleLightContent]; if(UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { NSLog(@"화면 사이즈 : %d",iPhoneVer..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [현재 날짜 및 시간 >..
[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { dispatch_async(dispatch_get_main_queue(), ^{ // [초기 변수 선언 실시]..