swift - How to animate the alpha of a textLabel in UITableView? -


O people, I am trying to change the alpha of the default tax label from a UITWhen when the table is scrolled, But I'm getting this error:

  Can not fetch 'animated method' with an argument list type (float literal variable, animation: () -> () -> $ T2) '  

My code is:

  Overcrowd Function ScrollVididScroll (Scrollview: Uua EscrollView) {for the table in the cell. VisibleCell () {UIView.animateWithDuration (0.5, Animation: {cell.textLabel? An empty  return     

/ code> at the end of closing the statement

  UIView.animateWithDuration (0.5, animation: {cell.textLabel ???? alpha = 0.0 returns / />  

You are using the Compact (Shortcut) Closer version, which has a built-in return. What happens is that your code reads it by the compiler :

  return cell.text label? .php = 0 0   

and it does not match closed signatures, so the compilation error. Adding a return statement makes it clear that the closing value does not have any return value. < / Html>

Comments

Popular posts from this blog

php - PDO bindParam() fatal error -

logging - How can I log both the Request.InputStream and Response.OutputStream traffic in my ASP.NET MVC3 Application for specific Actions? -

java - Why my included JSP file won't get processed correctly? -