ios - Can't invoke 'animationWithDuration' error message for a simple fade out on UILabel in swift -


i'm trying make simple fade in-out animation on uilabel in swift 'can't invoke...' error message.

@iboutlet weak var sendbuttonlabel: uilabel?  uiview.animatewithduration(1.5, animations: {             self.sendbuttonlabel?.alpha = 1.0         }) 

enter image description here

thanks in advance :)

try this:

uiview.animatewithduration(1.5, animations: {             self.sendbuttonlabel?.alpha = 1             }, completion: nil) 

Popular posts from this blog

javascript - Js, document.getElementById("ID").innerHTML, error -

objective c - Is there a way in OCMockito to make stubs fail when an unknown method is called? -

jquery - jqGrid update specific column data with out refreshing the entire column? -