I\'m looking for a way to add a padding
property to an UIView. Ideally, I would like to avoid subclassing and putting it in a category. The usage would be somet
This is generally done by setting the bounds within the view. So if you wanted an inset of 10 all round you could do:
view.bounds = CGRectInset(view.frame, 10.0f, 10.0f);
The bounds defines the drawable area of the view, relative to the frame. So this should give in effect a padding. You can then get the 'paddingBox' just from the bounds.
Hope this helps! :)