프로가 되자.

post search result

NSMutableDictionary와 관련된 글 1개를 찾았습니다.

  1. 2009/03/19 NSMutableDictionary 사용하기

NSMutableDictionary 사용하기

1. 초기화
NSMutableDictionary *dic;
dic = [[NSMutableDictionary alloc] init];

2. 데이터 삽입
[dic setObject:@"v1" forKey:@"k1"];
[dic setObject:@"v2" forKey:@"k2"];
[dic setObject:@"v3" forKey:@"k3"];

3. 데이터 갯수 구하기
NSLog("%d", [dic count]);
;

4. 값 얻어오기
NSString *str = [dic objectForKey:@"k1"];
NSLog(@"%@", str);
크리에이티브 커먼즈 라이센스
Creative Commons License
2009/03/19 11:51 2009/03/19 11:51

top

About this post

이 글에는 아직 트랙백이 없고, 아직 댓글이 없고, , 태그가 달려있으며,
2009/03/19 11:51에 작성되었습니다.

◀ recent : [1] : previous ▶

blog information

프로가 되자.
BLOG main image
빗소리를 먹는 사람.
RSS 2.0Tattertools
최근 글 최근 댓글 최근 트랙백
태그 구름사이트 링크