removeAllAnimations

Saj*_*are 4 iphone xcode ios4

我用它[self.view.layer removeAllAnimations];来暂停动画.但xcode说

警告:未找到"-removeAllAnimations"方法

为什么?

Jac*_*kin 5

您可能忘记将QuartzCore框架链接到您的项目中.

请在此处查看我的答案:尝试使用CAGradientLayer时编译错误