목록Objective-C (189)
투케이2K

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

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

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 설정] [http 요청 수행 소스 코드] // [HTTP 통신 콜백 메소드 호출 실시] NSString *url = @"http://jsonplaceholder.typicode.com/posts?"; NSMutableDictionary *params = [[NSMutableDictionary alloc] init]; [params setObject:@"1" forKey:@"userId"]; [params setObject:@"1" forKey:@"id"]; [self getHttpCallBack:url :params :^(BOOL returnBool, NSString *returnString) { if (re..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] #import "ViewController.h" // MARK: - [프로젝트-Swift.h import 명시] #import "objectTest-Swift.h" // MARK: - [Private 변수 선언 영역] @interface ViewController (){ } @end // MARK: - [몸체 (구현부) 동작 작성] @implementation ViewController // MARK: - [클래스 설명] /* // ----------------------------------------- 1. ViewController (구현부) 2. ios 13 이상 사용 : API_AVAILABLE(..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [뷰 로드 실시] - (void)viewDidLoad { [super viewDidLoad]; printf("\n"); printf("=============================== \n"); printf("[ViewController >> viewDidLoad() :: 뷰 로드 실시] \n"); printf("=============================== \n"); printf("\n"); // [세마 포어 메소드 호출] [self callSemaphore]; // [로그 출력 실시] printf("\n"); printf("=======================..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 설정] [소스 코드] // MARK: - [뷰 컨트롤러 이동 수행 메소드] - (void)moveView { printf("\n"); printf("=============================== \n"); printf("[ViewController >> moveView() :: 뷰 컨트롤러 이동 수행 실시] \n"); printf("=============================== \n"); printf("\n"); dispatch_async(dispatch_get_main_queue(), ^{ // [뷰 컨트롤러 선언 실시] UIViewController *controller = [self..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [alert 팝업창 표시 수행 메소드] - (void)showAlert { printf("\n"); printf("=============================== \n"); printf("[ViewController >> showAlert() :: 팝업창 호출 실시] \n"); printf("=============================== \n"); printf("\n"); /* [요약 설명] 1. alert 팝업창 표시 수행 메소드 2. 호출 방법 : [self showAlert]; */ dispatch_async(dispatch_get_main_queue(), ^{..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] #import "ViewController.h" // MARK: - [프로젝트-Swift.h import 명시] #import "objectiveProject-Swift.h" @interface ViewController () @end @implementation ViewController // MARK: - [뷰 로드 실시] - (void)viewDidLoad { [super viewDidLoad]; printf("\n"); printf("==================================== \n"); printf("[ViewController >> viewDidLoad() :: 뷰 로드 실..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] // MARK: - [디바이스 세로 화면 고정 처리] -(NSUInteger)application:(UIApplication *)application supportedInterfaceOrientationsForWindow:(UIWindow *)window { printf("\n"); printf("==================================== \n"); printf("[HelloWorldAppDelegate >> supportedInterfaceOrientationsForWindow() :: 디바이스 화면 세로 모드 고정 실시] \n"); printf("==================..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] dispatch_async(dispatch_get_main_queue(), ^{ // [비동기 처리 구문 작성 수행 실시] [btn_finger setBackgroundImage:[UIImage imageNamed:@"toggleon.png"] forState:UIControlStateNormal]; });

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [방법 설명] [헤더 [h] : 소스 코드] #import @interface SettingView : UIView { } // MARK: [초기 뷰 설정 메소드] - (void) setView; // MARK: [생체 인증 버튼 객체 설정 및 이벤트 지정] @property (nonatomic, strong) IBOutlet UIButton* btn_finger; -(IBAction)buttonClicked_finger:(id)sender; @end [몸체 [m] : 소스 코드] #import "SettingView.h" @implementation SettingView @synthesize btn_..

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

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

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [사전 info plist 설정 필요] [소스 코드] import UIKit // MARK: [import 추가 실시] import LocalAuthentication @objc class A_Auth: NSObject { // MARK: [클래스 설명] /* // ----------------------------------------- 1. A_Auth : 생체 인증 수행 액티비티 // ----------------------------------------- 2. info.plist 권한 등록 필요 : - Privacy - Face ID Usage Description // --------------------..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [소스 코드] #import "ViewController.h" @interface ViewController () @end @implementation ViewController // MARK: - [뷰 로드 실시] - (void)viewDidLoad { [super viewDidLoad]; printf("\n"); printf("==================================== \n"); printf("[ViewController >> viewDidLoad() :: 뷰 로드 실시] \n"); printf("==================================== \n"); printf("\n"..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [방법 설명] [Objective C : 소스 코드] #import "ViewController.h" // MARK: - [프로젝트-Swift.h import 명시] #import "objectiveProject-Swift.h" @interface ViewController () @end @implementation ViewController - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after loading the view. // MARK: [Swift set 함수 호출 수행 실시] [[S_Preferen..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [간단 설명] // ----------------------------------------- [헤더 h 파일 : @interface ViewController 영역 설명] 1. 헤더 파일로 클래스에서 사용할 변수 및 객체를 선언하는 영역입니다 2. 헤더 h 파일 @interface 영역에 선언한 변수 및 객체는 [public] 형태로 클래스 외부에서도 사용 가능합니다 // ----------------------------------------- // ----------------------------------------- [구현부 m 파일 : @interface ViewController 영역 설명] 1. 구현부 m ..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [ViewController.m 파일] #import "ViewController.h" // MARK: - [Private 변수 선언 영역] @interface ViewController (){ NSTimer *timerRepeat; // [타이머 객체] int timerCount; // [타이머 카운트] } @end // MARK: - [몸체 (구현부) 동작 작성] @implementation ViewController // MARK: - [클래스 설명] /* // ----------------------------------------- 1. ViewController (구현부) 2. ios 13 이상 사용 : AP..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [testMain 함수] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("=============================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("=============================== \n"); printf("\n"); // [현재 날짜 및 시간 >> 타임 스탬프 변환 : 밀리 세컨드] NSDate *stampDate = [NSDate date]; NSTimeInterval stampInter..

[개발 환경 설정] 개발 툴 : XCODE 개발 언어 : OBJECTIVE-C [testMain 함수] // MARK: - [헤더 파일에 정의 없이 : void 메소드 구현] - (void)testMain { printf("\n"); printf("=============================== \n"); printf("[ViewController >> testMain() :: 테스트 메소드 수행] \n"); printf("=============================== \n"); printf("\n"); // [초기 변수 선언 실시] NSString *oneData = @"hello"; NSString *twoData = @"투케이"; // [[1] : stringByAppen..