Skip to content

Instantly share code, notes, and snippets.

@Qiki
Created June 16, 2016 14:13
Show Gist options
  • Save Qiki/39cb03f867cb93cee724e34d1e3c43c1 to your computer and use it in GitHub Desktop.
Save Qiki/39cb03f867cb93cee724e34d1e3c43c1 to your computer and use it in GitHub Desktop.
CGRectInset(self.view.bounds, 8.0, 0.0)
Description
Returns a rectangle that is smaller or larger than the source rectangle, with the same center point.
A rectangle. The origin value is offset in the x-axis by the distance specified by the dx parameter and in the y-axis by the distance specified by the dy parameter, and its size adjusted by (2*dx,2*dy), relative to the source rectangle. If dx and dy are positive values, then the rectangle’s size is decreased. If dx and dy are negative values, the rectangle’s size is increased.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment