常に.1秒ごとに_propArrow(UIImageView)の位置を取得し、NSLogを使用してメソッド(void)runScheduledTaskで確認する必要があります
ただし、0.1秒ごとに動作するわけではありません。
アニメーションの動きの開始と終了のみを示します
これは私のコードです:
- (void)viewDidLoad
{
[super viewDidLoad];
_propArrow.frame = CGRectMake(144, 291, 33, 71);
aTimer = [NSTimer scheduledTimerWithTimeInterval:.1 target:self selector:@selector(runScheduledTask) userInfo:nil repeats:YES];
}
- (void)runScheduledTask {
NSLog(@"Position: %@", NSStringFromCGRect(_propArrow.frame));
}
- (IBAction)fire:(id)sender {
[UIView animateWithDuration:1
delay:0
options:UIViewAnimationCurveEaseInOut
animations:^{
_propArrow.frame = CGRectMake(144, 0, 33, 71);
}
completion:^(BOOL finished){
}];
}