liebus
NSMutableDictionary
// 키와값 세팅 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
2011. 10. 15. 12:02