parse.com - Swift Parse progressBlock: extra argument in call -


the error says: argument 'progressblock' in call. what's wrong?

pin.saveinbackgroundwithblock({(success, error) -> void in     if success == false {         ...      } else {           ...       }    },     progressblock: { (amountdone: cint) -> void in         var percent = float(amountdone)         elf.progressindicatorview.progress = cgfloat(percent)/100          self.progressindicatorview.reveal()    }) 

try:

 pin.saveinbackgroundwithblock({ (succeeded: bool, error: nserror?) -> void in     // handle success or failure here ...     if succeeded {         println("save successful")     } else {         println("save unsuccessful: \(error?.userinfo)")     }      }, progressblock: { (amountdone: int32) -> void in           var percent = float(amountdone)           self.progressindicatorview.progress = cgfloat(percent)/100           self.progressindicatorview.reveal() }) 

Comments

Popular posts from this blog

powershell Start-Process exit code -1073741502 when used with Credential from a windows service environment -

twig - Using Twigbridge in a Laravel 5.1 Package -

c# - LINQ join Entities from HashSet's, Join vs Dictionary vs HashSet performance -