[SDK]iPhoneアプリ開発初心者質問箱34[touch][iPad]
■ このスレッドは過去ログ倉庫に格納されています
0812名称未設定
2013/10/09(水) 19:03:36.42ID:8xMQEuzw0まずAutoreverseの指定は Must be combined with the UIViewAnimationOptionRepeat option.とあるから
options:UIViewAnimationOptionAutoreverse | UIViewAnimationOptionRepeat と指定。
で、リピートカウントを追加するのが正しいかな↓
animations:^{ [UIView setAnimationRepeatCount:1.0]; //この行を追加
ただこれでも実機では>>805のようになるので、Autoreverse使わないでcompletionで戻したら?
CGAffineTransform scale = CGAffineTransformMakeScale(1.5,1.5);
[UIView animateWithDuration:0.6
delay:0
options: UIViewAnimationOptionCurveLinear //とりあえずリニア
animations:^{ [view setTransform:scale]; }
completion:^(BOOL finished){
[UIView animateWithDuration:0.6
delay:0
options: UIViewAnimationOptionCurveLinear
animations:^{ view.transform = CGAffineTransformIdentity; }
completion:^(BOOL finished){
}];
}];
■ このスレッドは過去ログ倉庫に格納されています