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 })
thanks in advance :)
try this:
uiview.animatewithduration(1.5, animations: { self.sendbuttonlabel?.alpha = 1 }, completion: nil)