I want to add borders and corner radius to my UIButtons,UITextFields, etc
I think I could extend UIControl to add this functionality.
I would need to add some properties and draw in awakeFromNib or 'layoutSubviews'.
If I subclass UIControl, I can't make UIButton use that subclass.
If I subclass my UIControl subclass, I need to "recreate" UIButton, UITextField, etc.
I could subclass UIButton, UITextField and add this behaviour, but then I would have one subclass for each component to add the same functionality to them, ending with a lot of duplicated code.
I think I can not change/alter UIControl's methods in a category.
Is there a way to add this kind of functionality to UIControl and it's subclasses without reinventing the wheel, or ending up with a lot of duplicated code?