본문 바로가기

iOS

ch4_3 NSMutableDictionary를 이용한구현 더보기
Ch4_2 Property 더보기
ch4_1 MVC를 이용한 코딩 더보기
ch3 LightTheCandle 더보기
What do I need to develop applications for my iPhone 더보기
스레드 사용하기 출처 : http://j07051.tistory.com/entry/스레드-사용하기 더보기
NSThread 예제 출처 : http://j07051.tistory.com/entry/NSThread-예제 더보기
전역변수 추가 출처: http://blog.naver.com/smith3015/120101230110 코코아 프로그래밍은 오브젝트 시를 사용한다. 보통은 이벤트 드리븐 방식을 사용하는 이는 메시지 방식을 사용한다. 개념이 약간 달라서 혼란스럽기는 하다. 1. 먼저 .h 파일에 변수를 선언한다. @interface ~~ { NSString *globalStr;; 더보기
전역변수 사용하기 출처 : http://thefermata.net/?p=607 [ObjC] 전역변수 사용하기 일반적으로 숫자와 관련된 어플리케이션 (과연 숫자를 사용하지 않는 프로그램이 있을까?)를 프로그래밍 할때면 전역변수만큼 유용한것이 없다. 인터넷을 찾아보니 Objective C에서 전역변수를 사용하는 방법은 php만큼 쉬웠다. //Global_Variable.h (헤더파일) //쏼라쏼라~~ :P //extern (자료형) (변수명) extern NSInteger sampleInteger; //Global_Variable.m (소스파일) #import! “Global_Variable.h”; NSInteger sampleInteger = 0; //변수값 초기화해주고 @implementation Global_Variab.. 더보기
arc 에러관련 - 메모리 관리(ARC : Automatic Reference Counting)XCode의 iOS5 버전이상의 컴파일 시에 (void) dealloc의 에러가 발생합니다. 일반적으로 dealloc 함수를 정의 하면 아래와 같은 오류가 납니다. 'ARC forbids explicit message send of 'dealloc'의 에러 메세지가 발생합니다. 프로젝트 생성 시 Use Automatic Reference Counting 을 해제 하시면, iOS5 이전 버젼과 같이 Reference를 처리해줍니다. 새로운 기능인 Use Automatic Reference Counting을 사용 하시려면과감히 (void)dealloc {...}, [[[o alloc]init]autorelease], [o rele.. 더보기