LoginSignup
4
4

More than 5 years have passed since last update.

Core Animation: 暗黙のトランザクションを制御

Last updated at Posted at 2012-12-26
Animation
CALayer *layer = [CALayer layer];

[CATransaction begin];
[CATransaction setAnimationDuration:10.0]; // アニメーション長さ
[CATransaction setAnimationTimingFunction:[CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]]; // イージング
[CATransaction setDisableActions:YES]; // アニメーション無効化

layer.frame = CGRectMake(0, 10, 200, 300);
layer.backgroundColor = [UIColor redColor].CGColor;

[CATransaction commit];

"CATransition" と名前が似ているので注意

4
4
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
4