I am using [self.view.layer removeAllAnimations]; to pause animation.but xcode says
[self.view.layer removeAllAnimations];
warning: no '-removeAllAnimations' method found
why?
You probably forgot to link the QuartzCore structure to your project.
QuartzCore
See my answer here: Compile error trying to use CAGradientLayer