有一个标签在 10 秒内显示从 10,000 到 0 的分数 (lblPoints)
NSTimer pointstimer=[[NSTimer scheduledTimerWithTimeInterval:0.001 target:self selector:@selector(pointstimermethod) userInfo:nil repeats:YES]retain];
-(void)pointstimermethod
{
points=points-1;
lblPoints.text=[NSString stringWithFormat:@"%d",points];
}
谁能告诉我如何在 10 秒内准确地显示 10,000 到 0?