I have two ways of the same name with different parameters
func SetName (name: NSString, filename: NSString, data: NSDTa, body: NSMutableData) {// statement} func setName (name: NSString, value: NSString, body: NSMutableData) {// statement}
When I'm calling this method, I get errors like this ...
if condition {setName (paramKeysArray [cnt], filename: "Photo JPEG ", Data: UIImageJPEGRepresentation (image), body: body) / error: parameter # missing in parameter # 2 call Query {else} {setName (paramKeysArray [cnt], value: paramDic.objectForKey (paramKeysArray [cnt]), body: body) // error: the argument in the parameter 'data' in the missing call}
Why should it give these errors ..?
The second parameter is missing in the UIImageJPEG reference
as it has been declared :
func UIImageJPEG Reputation (Image: UIImage !, Compression Quality: CGFloat)
Also make sure that all your parameters match the required type .
No comments:
Post a Comment