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 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 >> and it is CGFloat then down the line If using: self.hud.progress = amountDone / 100 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)
self.hud.progress = CGFloat (flotAmount / 100)
Comments
Post a Comment