Created
July 2, 2013 14:35
-
-
Save AyatoKinkori/5909816 to your computer and use it in GitHub Desktop.
NSMutableDictionaryの適切でない使い方 ref: http://qiita.com/AyatoKinkori@github/items/33dfae4dbccd12b07d88
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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