I'm trying to make an array of UI elements, but with different types inside. Some are image views, and some are buttons. I am familiar with making a collection of the same type, such as
@IBOutlet var things: [UIButton]!
but that code only makes an array of buttons, while I need to add image views to that also. How can I make an array that accepts both types?
IBOutlet. Do you mean to mark itIBOutletCollection, or did you add that by accident?