iOS   发布时间:2022-05-04  发布网站:大佬教程  code.js-code.com
大佬教程收集整理的这篇文章主要介绍了ios – Xcode 6.1:UIView.animateWithDuration额外参数’usingSpringWithDamping’大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。

概述

我不知道为什么错误,“额外的参数’在调用中使用 SpringWithDamping’突然出现在下面. 我刚刚开始,所以任何帮助将不胜感激! UIView.animateWithDuration(1.0, delay: 0, usingSpringWithDamping: 1.5, initialSpringVelocity: 5.0,
@H_772_18@ 我不知道为什么错误,“额外的参数’在调用中使用 SpringWithDamping’突然出现在下面.

我刚刚开始,所以任何帮助将不胜感激!

@H_874_23@UIView.animateWithDuration(1.0,delay: 0,usingSpringWithDamping: 1.5,initialSpringVeLocity: 5.0,options: UIViewAnimationOptions.CurveEaseInOut | UIViewAnimationOptions.AllowUserInteraction,animations: { self.view.BACkgroundColor = newColor self.funFactLabel.transform = CGAffineTransformMakeScale(1.25,1.25) },completion: { finished in UIView.animateWithDuration(2.0,usingSpringWithDamping: 0.5,options: nil,animations: { self.funFactLabel.transform = CGAffineTransformMakeScale(1.0,1.0) } )},completion: nil )

解决方法

试试这个:

@H_874_23@UIView.animateWithDuration(1.0,animations: { self.view.BACkgroundColor = newColor self.funFactLabel.transform = CGAffineTransformMakeScale(1.25,1.25) },completion: { finished in UIView.animateWithDuration(2.0,animations: { self.funFactLabel.transform = CGAffineTransformMakeScale(1.0,1.0) },completion: nil) })

大佬总结

以上是大佬教程为你收集整理的ios – Xcode 6.1:UIView.animateWithDuration额外参数’usingSpringWithDamping’全部内容,希望文章能够帮你解决ios – Xcode 6.1:UIView.animateWithDuration额外参数’usingSpringWithDamping’所遇到的程序开发问题。

如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。

本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。