0
Im在這段代碼中掙扎: 它不會返回錯誤,但不會動畫顏色過渡。 顏色只是立即改變。 完成返回TRUE。 我發現不幸的是,類似的例子並沒有幫助:(Swift UIView.animateWithDuration沒有動畫效果
高興能得到這個你的輸入,在此先感謝!
UIView.animateWithDuration(1.0, delay: 0.0,
options: UIViewAnimationOptions.CurveEaseOut,
animations:{
self.pbDayLight.trackTintColor = self.pbBackGroundCol
}, completion: {(done: Bool) -> Void in
println("animated \(done)")
})
和改變層的顏色作品? – 2015-03-31 19:45:43