Swift error in passing parameters

1
func imageUploadRequest(param:[String: String] ,myImageView: UIImage)

I need to call the imageUploadRequest function by passing 2 parameters, the first being an array of string and the second an image. How could I do that? Why are you giving error when passing parameters?

var up = UploadImageView()
            var request: UploadImageView = UploadImageView()
            request.imageUploadRequest(param, myImageView: self.imageProfile)
    
asked by anonymous 01.07.2015 / 01:17

1 answer

0

In this case, you should pass the parameters as follows:

func imageUploadRequest(param:Array<String>,myImageView:UIImage)

Taking the position that in swift 2.0 the specification of the array parameter is used through "< >".

I hope I have helped.

    
25.04.2016 / 12:06