4

I use [self.view.layer removeAllAnimations]; for pause animation.but xcode says

warning: no '-removeAllAnimations' method found

why ?

SajjadZare
  • 2,487
  • 4
  • 38
  • 68

1 Answers1

5

You probably forgot to link the QuartzCore framework into your project.

See my answer here: Compile error trying to use CAGradientLayer

Community
  • 1
  • 1
Jacob Relkin
  • 161,348
  • 33
  • 346
  • 320