I have a class which includes a UIButton as a subview. I have a subclass of UIButton which I've made, which has my own modifications to it, and I want to use this in place of the UIButton, but I don't want to just remove the original UIButton and add this one on instead, because then it wouldn't respond to the UIButton commands that the class gives to it.
How can I use my subclass of UIButton here?
Hope this makes sense.
EDIT: So I have a subclass of UIView. It's called MyView. MyView has a subview of a UIButton. I also have a subclass of UIButton, called MyButton. I want to use MyButton instead of UIButton on MyView. How can I do this?