【发布时间】:2011-07-20 21:43:26
【问题描述】:
我不明白为什么这个 NSInteger 计数器会精确地增加到数据库行的真实值的 4 倍。也许这很愚蠢,但我真的不明白......
到目前为止谢谢:)
NSInteger *i;
i = 0;
for ( NSDictionary *teil in gText ) {
//NSLog(@"%@", [teil valueForKey:@"Inhalt"]);
[databaseWrapper addEntry:[teil valueForKey:@"Inhalt"] withTyp:[teil valueForKey:@"Typ"] withParagraph:[teil valueForKey:@"Paragraph"]];
i+=1;
}
NSLog(@"Number of rows created: %d", i);
【问题讨论】: