목록Objc (206)
투케이2K

[개발 환경 설정] 개발 툴 : 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(), ^{ // [초기 url 변수 선언..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); /* ------------------------------------ [요약 설명] ------------------------------------ 1. 삼항식 ..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); /* ------------------------------------ [요약 설명] ------------------------------------ 1. isEq..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [UI창 선택적 구성 및 제공된 UI창에 Scene 연결] - (void)scene:(UIScene *)scene willConnectToSession:(UISceneSession *)session options:(UISceneConnectionOptions *)connectionOptions API_AVAILABLE(ios(13.0)){ printf("\n"); printf("=============================== \n"); printf("[SceneDelegate >> willConnectTo] \n"); printf("[설명 :: UI창 선택적 구성 및 제공된 U..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // [앱에 표시된 뱃지 카운트 확인] int badgeCount = [UIApplication sharedApplication].applicationIconBadgeNumber; printf("\n"); printf("==================================== \n"); printf("[MainViewController >> checkForeground() :: 앱에 표시된 뱃지 카운트 개수] \n"); printf("[badgeCount :: %d] \n", badgeCount); printf("==================================== \n"); prin..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // --------------------------------------- // MARK: [KWON] : [1] : 웹뷰 로딩 상태 감지를 위해 delegate 등록 // --------------------------------------- // [웹뷰 로딩 상태 감지를 위해 delegate 등록] self.webView.delegate = self; // --------------------------------------- // --------------------------------------- // MARK: [KWON] : [2] : 웹뷰 로딩 상태 감지를 위해 delegate 등록 // --..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [참고 사이트] https://www.tutorialspoint.com/objective_c/index.htm Objective-C Tutorial Objective-C Tutorial Objective-C is a general-purpose, object-oriented programming language that adds Smalltalk-style messaging to the C programming language. This is the main programming language used by Apple for the OS X and iOS operating systems and th www.tutori..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { // [로딩 동작 실시] [self startLoading]; // [dispatch_after 사용해 일정 시간..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // ------------------------------------ // [특정 함수 : void : stopLoading] // ------------------------------------ // [dispatch_after 사용해 일정 시간 후 특정 메소드 동작 실시] dispatch_after(dispatch_time(DISPATCH_TIME_NOW, (int64_t)(5 * NSEC_PER_SEC)), dispatch_get_main_queue(), ^{ [self stopLoading]; }); // ------------------------------------ // [performSele..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); /* ------------------------------------ [요약 설명] ------------------------------------ 1. AudioSer..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // [try catch 구문 정의 실시] @try { // [초기 변수 선언 실시] NSString *copyData = @"투케이2K"; // [UIPasteboard 사용해 클립보드 복사 수행 실시] [[UIPasteboard generalPasteboard] setString:copyData]; } @catch (NSException *exception) { printf("\n"); printf("==================================== \n"); printf("[ViewController >> catch :: 예외 상황 확인] \n"); printf("[name :: %s..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 설정] [소스 코드] // [try catch 구문 정의 실시] @try { // [이미지 뷰 속성 설정 실시] [self.imageView setFrame:self.view.bounds]; [self.imageView setClipsToBounds:YES]; [self.imageView setContentMode:UIViewContentModeScaleAspectFit]; [self.imageView setAutoresizesSubviews:YES]; [self.imageView setClearsContextBeforeDrawing:YES]; [self.imageView setOpaque:YES]; ..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [ViewController.h] // MARK: - [import 정의] #import #import #import #import @interface ViewController : UIViewController { // [클래스 딜리게이트 정의] /* ----------------------------- // [지역 변수 정의] ----------------------------- 1. self 키워드 없이 접근 가능 ----------------------------- 2. 메소드 내에서 사용 필요 ----------------------------- 3. 정보 은닉 데이터 처리 --------------------..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 애플리케이션 스키마 등록] https://kkh0977.tistory.com/1338?category=990105 17. (ios/swift) url scheme 스키마 데이터 전송 및 받은 데이터 확인 [개발 환경 설정] 개발 툴 : XCODE 개발 언어 : SWIFT [손님 : 접속하는 쪽] [주인 : 접속을 받아서 데이터 처리하는 쪽 : 프로젝트 설정 부분] [주인 : 소스코드 : SceneDelegate] import UIKit clas.. kkh0977.tistory.com [소스 코드] #import "SceneDelegate.h" // MARK: - [헤더 [선언부] 호출] @inter..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 설정] [소스 코드] // [try catch 구문 정의 실시] @try { // [이미지 뷰 속성 설정 실시] [self.imageView setFrame:self.view.bounds]; [self.imageView setClipsToBounds:YES]; [self.imageView setContentMode:UIViewContentModeScaleAspectFit]; [self.imageView setAutoresizesSubviews:YES]; [self.imageView setClearsContextBeforeDrawing:YES]; [self.imageView setOpaque:YES]; ..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // [try catch 구문 정의 실시] @try { // [컴포넌트 속성 hidden YES 숨김 처리 실시] [self.labelText setHidden:YES]; // [컴포넌트 속성 hidden NO 보임 처리 실시] //[self.labelText setHidden:NO]; } @catch (NSException *exception) { printf("\n"); printf("==================================== \n"); printf("[ViewController >> catch :: 예외 상황 확인] \n"); printf("[name :: %s] \n", exce..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); /* ------------------------------------ [요약 설명] ------------------------------------ 1. UIScre..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { printf("\n"); printf("=============================== \n"); printf("[AppDelegate >> didFinishLaunchingWithOptions] \n"); printf("[설명 :: 앱 프로세스 완료 및 앱 실행 실시] \n"); printf("=============================== \n"); printf("\n"); // -------..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { printf("\n"); printf("=============================== \n"); printf("[AppDelegate >> didFinishLaunchingWithOptions] \n"); printf("[설명 :: 앱 프로세스 완료 및 앱 실행 실시] \n"); printf("=============================== \n"); printf("\n"); // -------..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("==================================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("==================================== \n"); printf("\n"); // [try catch 구문 정의 실시] @try { // [뷰 화면 사이즈 확인 실시] double deviceHeight = self.view.frame.size...