In my ios application i want to store an object’s reference. This object can be an instance from interface A,B,C or D. I know that it’s always going to be one from these four, but never know which one. How can i represent this object in my code?
Sincerely, Zoli
Represent it as type id.
Also, be aware of the possibility that you can specialise type id to some protocol.