0.25から0.75までの範囲である。これは、ユーザーに何をするべきかを示すはずです。 円滑にアニメーションをアニメ化する
私はこの試みた:[self incrementCounter:[NSNumber numberWithInt:0]];
-(void) incrementCounter:(NSNumber *)i {
[Slider setValue:[i floatValue]/1000];
[self performSelector:@selector(incrementCounter:) withObject:[NSNumber numberWithInt:i.intValue+1] afterDelay:0.001];
}
をしかしそれほどスムーズではないthatsの...私はこのためにトランジションを使用することができますか?
[UIView animateWithDuration:2.0
animations:^{
[Slider setValue:0.2];
}];
[UIView animateWithDuration:2.0
animations:^{
[Slider setValue:0.5];
}];
ちょうど秒1をアニメーション化し
[Slider setValue:1 animated:YES];
断食することです... ...