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

c# - ODP.NET Oracle.ManagedDataAccess causes ORA-12537 network session end of file -

matlab - Compression and Decompression of ECG Signal using HUFFMAN ALGORITHM -

utf 8 - split utf-8 string into bytes in python -