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

Popular posts from this blog

javascript - Thinglink image not visible until browser resize -

firebird - Error "invalid transaction handle (expecting explicit transaction start)" executing script from Delphi -

mongodb - How to keep track of users making Stripe Payments -