小编JoD*_*oDG的帖子

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);
Run Code Online (Sandbox Code Playgroud)

increment nsinteger ios

5
推荐指数
1
解决办法
3695
查看次数

标签 统计

increment ×1

ios ×1

nsinteger ×1