ios - Swift: Extra Argument "progressblock" in call -


I am having trouble getting a sense of the fact that I am getting the error quoted in the question title when a progress timer Attempt to implement my block

  function uploadImage (imageData: NSData!). Avatar of {go imagefile = PFFile (name: "\ (PFUser.currentUser user name).", Data: imageData) / / Show HUD (self.view animated, true) upload HUD = MBProgressHUD.showHUDAddedTo user signals To check hud.mode = MBProgressHUDModeDeterminateHorizontalBar hud.labelText = "Image Change ..." // Upload Image imageFile.saveInBackgroundWithBlock ({{Success: Bull, Error: NSError) -> // There was an error, file upload handling // out-of-unnecessary code}, start rolling is not valid in progressBlock: {(amountDone: Int32) ->, self.hud.progress = amount / f 100/1 as Lot)}}  

If I remove line self.hud.progress = amountDone / 100

I follow the following The only difference is that

Working with Swift so I need to convert from Objective-C, although I can not see that the other block Why would it make a huge difference in the syntax for the construction.

raising this issue.

You need to enter zodiac in float or CGFloat from the int32 . Check the type of flotAmount = float (amountDone)

>

   self.hud.progress  if this  Float is using  
  self.hud.progress = float (float amounts / 100)  

and it is CGFloat then down the line If using:

  self.hud.progress = CGFloat (flotAmount / 100)  

Comments

Popular posts from this blog

python - Overriding the save method in Django ModelForm -

html - CSS autoheight, but fit content to height of div -

qt - How to prevent QAudioInput from automatically boosting the master volume to 100%? -