我不明白为什么这个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);
Run Code Online (Sandbox Code Playgroud)