ios - Animation finishes immediately, regardless of duration and delay -
i have animation block, cell
background color clear
immediately:
cell.mylabel.backgroundcolor = .orange uiview.animate(withduration: 3.0, delay:3, animations: { cell.mylabel.backgroundcolor = .clear })
the point running in cellforrowat
i tried moving animation custom cell, no success again:
override func didmovetowindow() { uiview.animate(withduration: 3.0, delay:3, animations: { self.mylabel.backgroundcolor = .clear }) }
try this,
cell.mylabel.layer.backgroundcolor = uicolor.redcolor().cgcolor uiview.animate(withduration: 3.0, delay:3, animations: { cell.mylabel.layer.backgroundcolor = uicolor.clearcolor().cgcolor })
Comments
Post a Comment