Is there a possibility to have two different custom objects in one array?
I want to show two different objects in a UITableView and I think the easiest way
UITableView
You can use the "type" AnyObject which allows you to store objects of different type in an array. If you also want to use structs, use Any:
AnyObject
Any
let array: [Any] = [1, "Hi"]