받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/25
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/25
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/24
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/24
<미국에 있을때 현재 위치 반환>
NSString *language = [[NSLocale currentLocale] objectForKey: NSLocaleLanguageCode]; // return "en"
NSString *countryCode = [[NSLocale currentLocale] objectForKey: NSLocaleCountryCode]; // return "US"
<설정된 언어 반환>
NSString *language = [[NSLocale preferredLanguages] objectAtIndex:0];
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/23
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/23
Mac 이나 iPhone에서 오브젝트간 메세지를 전달하는 방법은 3가지가 있다.
object가 notification center에 message를 보내면 notification center에 등록된 selector로 해당 메세지를 보내준다.
2. 장단점
다른 object도 해당 message를 볼 수 있다. 즉, 정보를 얻을 수가 있다.
오브젝트간 1:다 관계를 형성할 수 있다.
3. 관련 클래스
NSNotificationCenter
1. Notifications
1. 원리object가 notification center에 message를 보내면 notification center에 등록된 selector로 해당 메세지를 보내준다.
2. 장단점
다른 object도 해당 message를 볼 수 있다. 즉, 정보를 얻을 수가 있다.
오브젝트간 1:다 관계를 형성할 수 있다.
3. 관련 클래스
NSNotificationCenter
4. 사용법
* 메세제를 받을 수 있도록 설정
[[NSNotificationCenter defaultCenter] addObserver:self selector:@(action:)];
* 센터에 메세지 보내기
[[NSNotificationCenter defaultCenter] postNotificationName:@"MessageName" object:self];
2. Delegates
* 메세제를 받을 수 있도록 설정
[[NSNotificationCenter defaultCenter] addObserver:self selector:@(action:)];
* 센터에 메세지 보내기
[[NSNotificationCenter defaultCenter] postNotificationName:@"MessageName" object:self];
2. Delegates
1. 원리
object와 object의 1:1 관계를 정의하는 패턴이다.
2. 장단점
미리 정의할 수 있는 특정 기능을 수행해야 할 경우에 유용하다. 함수를 호출하는 방식으로 실행된다.
3. Target-Action
1. 예
버튼
2. 사용법
id target = ...; // defined elsewhere
SEL action = ...' // defined elsewhere
[target performSelector:action];
[fileDownloader downloadFile:(NSURL*)url target:(id)target didSucceed:(SEL)succeed didFail:(SEL)failed];
Ref URL
object와 object의 1:1 관계를 정의하는 패턴이다.
2. 장단점
미리 정의할 수 있는 특정 기능을 수행해야 할 경우에 유용하다. 함수를 호출하는 방식으로 실행된다.
3. Target-Action
1. 예
버튼
2. 사용법
id target = ...; // defined elsewhere
SEL action = ...' // defined elsewhere
[target performSelector:action];
[fileDownloader downloadFile:(NSURL*)url target:(id)target didSucceed:(SEL)succeed didFail:(SEL)failed];
Ref URL
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/22
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/22
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/21
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/21
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/20
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/20
Part 1 - Creating a settings bundle which will show up in settings.
Xcode에서 settings bundle 추가하는 방법 및 Specifier 정의 부분
Part 2 - Applying defaults to the settings bundle.
Xcode에서 settings bundle 추가하는 방법 및 Specifier 정의 부분
Part 2 - Applying defaults to the settings bundle.
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/19
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/19
* 홈버튼 한번 누를때..
- os3.x : applicationWillTerminate가 호출 잘됨
- os4.x : applicationDidEnterBackground 호출됨 (cause multi tasking)
* 멀티태스킹이 지원되는 os4.x에서의 호출 순서
- os3.x : applicationWillTerminate가 호출 잘됨
- os4.x : applicationDidEnterBackground 호출됨 (cause multi tasking)
* 멀티태스킹이 지원되는 os4.x에서의 호출 순서
== 최초 실행 ==
didFinishLaunchingWithOptions
applicationDidBecomeActive
== Home button Once ==
applicationWillResignActive
applicationDidEnterBackground
== 재실행 ==
applicationWillEnterForeground
applicationDidBecomeActive
== Home button Twice ==
applicationWillResignActive
* 멀티태스킹 지원하지 않고 종료를 원할 경우
applicationDidEnterBackground에서 exit(0); 호출
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/18
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/18
안드로이드 개발을 위한 구매..
55,000원짜리로 가입해줌..
조금씩 매력적이게 느껴지고 있음..
안드로이드 고고씽.. !!
지름신이 막막;; ㅠㅠ
55,000원짜리로 가입해줌..
조금씩 매력적이게 느껴지고 있음..
안드로이드 고고씽.. !!
지름신이 막막;; ㅠㅠ
받은 트랙백이 없고,
댓글이 없습니다.
댓글+트랙백 RSS :: http://jams.pe.kr/rss/response/17
댓글+트랙백 ATOM :: http://jams.pe.kr/atom/response/17
받은 트랙백이 없고,
댓글이 없습니다.



