
我很确定我没有使用CAAnimations,因为Cocoa没有检测到这样的类.
这个是在收到广告时运行的.不幸的是,这与ShowSearch运行的时间相同.
- (voID)adVIEwDIDReceiveAd:(GADBannerVIEw *)bannerVIEw { if (!hasloaded) { [UIVIEw beginAnimations:nil context:nil]; [UIVIEw setAnimationCurve: UIVIEwAnimationCurveEaseInOut]; [UIVIEw setAnimationDuration: 1.0]; [bannerVIEw_ setFrame:CGRectMake(0,self.vIEw.frame.size.height,bannerVIEw_.frame.size.wIDth,bannerVIEw_.frame.size.height)]; // move and grow [bannerVIEw_ setFrame:CGRectMake(0,self.vIEw.frame.size.height-50,bannerVIEw_.frame.size.height)]; // set original position [UIT setFrame:CGRectMake(UIT.frame.origin.x,UIT.frame.origin.y,UIT.frame.size.wIDth,UIT.frame.size.height)]; // move and grow [UIT setFrame:CGRectMake(UIT.frame.origin.x,UIT.frame.size.height-50)]; [UIVIEw commitAnimations]; hasloaded = true; }}解决方法 您可以使用UIVIEw方法 +animateWithDuration:animations:completion:中的完成块(这是beginAnimations / commitAnimations的一个更现代的替代方法)来链接多个动画(我猜这是您想要做的?). 总结 以上是内存溢出为你收集整理的ios – 检查UIView当前是否正在制作动画全部内容,希望文章能够帮你解决ios – 检查UIView当前是否正在制作动画所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
微信扫一扫
支付宝扫一扫
评论列表(0条)