Skip to content

Instantly share code, notes, and snippets.

@AyatoKinkori
Created July 2, 2013 14:35
Show Gist options
  • Save AyatoKinkori/5909816 to your computer and use it in GitHub Desktop.
Save AyatoKinkori/5909816 to your computer and use it in GitHub Desktop.
NSMutableDictionaryの適切でない使い方 ref: http://qiita.com/AyatoKinkori@github/items/33dfae4dbccd12b07d88
NSMutableDictionary *mutable_dic = [[NSMutableDictionary alloc] initWithCapacity:2];
//辞書の生成
int i;
for (i = 0; i < 100; i++) {
NSDictionary *dic = [NSDictionary dictionaryWithObject:@"hoge" forKey:@"Key"];
[mutable_dic addEntriesFromDictionary:dict];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment