In my app, i'm declaring an array stored property as a variable. when i want to check if it contains and object, Xcode doesn't autocomplete. If i complete it manually it shows an error saying that it doesn't contain this method. I think it the array is not being mutable although it's declared as a var. Here is my code:
class someClass{
var someArray = AnyObject[]()
func someFunction{
if someArray.containsObject("object") <--- error here
}
}
containsObjectis not a method onArray, its a method onNSArray. There should be a Swift equivalent method to do that