關(guān)于小圓點的動畫,可以把initialSpringVelocity降低就不會這么不舒服了
我的參數(shù)設(shè)置成如下就感覺很舒服
UIView.animateWithDuration(1, delay: 0.4, usingSpringWithDamping: 0.3, initialSpringVelocity: 0, options: [], animations: {
self.logodot.center.x += self.view.bounds.width
}, completion: nil)
我的參數(shù)設(shè)置成如下就感覺很舒服
UIView.animateWithDuration(1, delay: 0.4, usingSpringWithDamping: 0.3, initialSpringVelocity: 0, options: [], animations: {
self.logodot.center.x += self.view.bounds.width
}, completion: nil)
2015-11-18
不知道為什么沒效果,找了半天終于發(fā)現(xiàn),是背景的view不知怎的跑到最后面了,壓蓋了圓形效果,調(diào)整下位置就好了。
2015-08-16