In my UIViewController I've got outlet collection:
@IBOutlet var cardButtons: Array<UIButton>
Form this collection I want to get a index of object, but Array don't have a proper method for this. I found that 'indexOfObject' method is only in NSArray.
For now a I cast cardButtons property to NSArray
var cardButtonsArray = cardButtons as NSArray
and this solve my problem, but maybe there is another, more clean way to do this?
Thank you for your help.