How can I increase the size of a CGRect by a certain percent value? Should I use some form of CGRectInset to do it?
CGRectInset
Example:
Assume I have a CGRect:
Sure, using CGRectInset works:
CGRect someRect = CGRectMake(10, 10, 100, 100); someRect = CGRectInset(someRect, someRect.size.width * -0.2, someRect.size.height * -0.2);