i have a fixed size array as
var fieldNameArray = [String?](count: 4, repeatedValue: nil)
i am doing this to search if there is the element in array or not
if let temp = find(fieldNameArray,"profile_picture"){//i get a compile error here
//remove the data
....
}else{
println(" //append the value")
.....
}
But i get a compile time error as
Cannot invoke 'find' with an argument list of type '([(String?)], String)'
I think i should unwrap it? How can i do it
UPDATED
SRWebClient.POST(registerURl)
.data(registerImagesArray, fieldName: fieldNameArray, data: parametersToPost)
.send({(response:AnyObject!, status:Int) -> Void in//here compile time error
println("response object: \(response)")
Again after i changed my array to fixed size array i got this error
Cannot invoke 'send' with an argument list of type '((AnyObject!, Int) -> Void, failure: (NSError!) -> Void)