我不明白爲什麼這個NSInteger計數器的增量正好是數據庫行的真實值的4倍。也許這是愚蠢的,但我真的不明白這一點...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);
啊,所以NSInteger不是像所有其他NSS一樣的常規對象...,這是一種原始類型? – LaK 2011-03-22 23:05:35
是的,其實很有趣,因爲它是long或int的typedef。我將包含文檔中的剪輯。 – Suroot 2011-03-22 23:06:59
好吧,似乎讓64位更直觀......對我來說很好,謝謝:) – LaK 2011-03-22 23:27:04