I’ve created a protocol (LEService) that I will conform to in multiple UIViewControllers. I won’t know until runtime which UIViewController service has been chosen.
Is there anyway to create an instance of an object that conforms to a protocol without saying what the object is until runtime?
Sure, you can do it like this:
idis Objective C’s generic type.