【发布时间】:2015-06-05 20:14:02
【问题描述】:
let label = UILabel(frame: CGRectMake(20.0, 20.0, 15.0, 15.0))
label.backgroundColor = UIColor.flamingoColor()
UIView.animateWithDuration(3.0, animations: {
cell.addSubview(label)
label.backgroundColor = UIColor.yellowColor()
})
我放在tableView:cellForRowAtIndexPath: 中的这段代码 -> 结果是一个黄色背景的子视图,但我没有看到任何动画。方法tableView:didEndDisplayingCell:也是如此
我应该使用哪种方法或应该放哪种动画来查看 UITableViewCell 中的任何动画。我知道我无法为现有标签设置动画,因为它们有约束。
【问题讨论】:
标签: uitableview animation tableviewcell