if(!offsetflg){あと、type毎のfont size設定も完了。これは別に何の苦労もなくできた。
if(lastid>topid){
NSLog(@"short! tid:%lld/sid:%lld/lid:%lld/difid:%lld (acc:%d/brk:%d)",topid,since_id,lastid,difid,acc,brk);
brk=2;difid=lastid-topid;difid*=acc++;since_id+=difid;
offsinceval=[NSString stringWithFormat:@"%lld",since_id];[self reqDB];
return;
}else if(lastid<=[[[bd valueForKeyPath:post(@"id")]lastObject]longLongValue]){
NSLog(@"over! tid:%lld/sid:%lld/lid:%lld/difid:%lld (acc:%d/brk:%d)",topid,since_id,lastid,difid,acc,brk);
acc=1;
if(difid){since_id-=difid;difid/=brk++;since_id+=difid;}
else since_id-=(topid-[[[bd valueForKeyPath:post(@"id")]lastObject]longLongValue]);
offsinceval=[NSString stringWithFormat:@"%lld",since_id];[self reqDB];
return;
}else{
NSLog(@"ok");
difid=0,acc=1,brk=2;
for(id idnum in [bd valueForKeyPath:post(@"id")]){
if(lastid<=[idnum longLongValue]) skip++;
else break;
}
}
}
iPhone5のケース到着。あらためて、これ。
素晴らしい。
0 件のコメント:
コメントを投稿