0
具有持续时间的动画我同时使用animateWithDuration块得到一个错误的方法问题在迅速
下面是我的代码:
func tableView(tableView: UITableView, didSelectRowAtIndexPath indexPath: NSIndexPath) {
var cell=tableView.cellForRowAtIndexPath(indexPath)
var backGrndView:UIView?=cell?.contentView.viewWithTag(2) as UIView?
UIView.animateWithDuration(0.2,
animations: {
backGrndView?.backgroundColor=UIColor.redColor()
},
completion: { finished in
backGrndView?.backgroundColor=UIColor.redColor()
})
}
我试过的解决方案在link。
但我的问题没有解决。
下面是截图:
请帮助我。
在此先感谢