I've written a category for UIImagePickerController
which I would only like to be accessed by one specific class. The category contains overrides for two private methods. The problem I'm having is that no matter how I try to define the category it seems that every class that instantiates a UIImagePickerController
will override these methods. From my understanding this is the expected behaviour when creating a category, but is there any way around it?
I've tried defining the category in a separate .h/.m file as well as adding it directly to a separate class's implementation but neither seem to work. I've also tried creating an additional category which calls super for these methods but the original category still seems to take priority.
Any ideas or is this just not possible?