I've added a functionality to UIView by extending drawRect. This works great for a simple UIView, but the problem is that I want it to work also for UILabel, UIButton, UIImageView and every other component that inherits from UIView.
I was wondering what is the best way to achieve this. Can I make a subclass of UILabel (for example) that inherits from MyView instead of UIView?