liebus

NSMutableDictionary 본문

예전꺼(2014년이전꺼)/iOS

NSMutableDictionary

리베스 2011. 10. 15. 12:02

// 키와값 세팅
NSMutableDictionary *diction = [NSMutableDictionary dictionaryWithObjectsAndKeys:@"ValueOne", @"keyOne", @"ValueTwo", @"KeyTwo", nil]; 

// 값하나를 더 할때
[diction setOnject:value forKey:key];

// 값얻어오기
NSString *str = [diction objectForKey:@"KeyOne"];

// 모든 key를 NSArray형으로 리턴
[diction allkeys];  

// 모든 데이터 삭제
[diction removeAllObjects];


'예전꺼(2014년이전꺼) > iOS' 카테고리의 다른 글

UITextView Border padding  (0) 2013.05.27
Mac 숨긴 파인더 보기  (0) 2012.01.02
Xcode 삭제  (0) 2011.09.29
UIToolBar Customize  (0) 2011.09.22
Xcode 4.x 에서 Resources 파일 추가  (0) 2011.08.25
Comments