Why IB outlet collection do not have index of object method when it is an array? What I am doing wrong?
@IBOutlet var textFieldsCollection: [UITextField]!
self.textFieldsCollection.indexOfObject(textField)
End the error is this: Text.swift:30:18: '[UITextField]' does not have a member named 'indexOfObject'