performSelector:withObject:afterDelay:
持続時間のあるアニメーションを実行する by というメソッドがあります。したがって、遅延の後、アニメーションは実行されますが、アニメーションの長さはありません。
[self performSelector:@selector(animate:) withObject:[NSNumber numberWithInt:-1] afterDelay:4.0];
-(void) animate:(int) mode
{
[UIView animateWithDuration:0.2
delay:0.0
options:UIViewAnimationOptionCurveEaseIn
animations:^{
self.center = CGPointMake(160.0, 568.0 + mode*height/2);
}
completion:nil];
}
completion:
また、 UI インタラクションをブロックするため、アニメーションをネストできません。