Skip to content

Instantly share code, notes, and snippets.

@berzniz
Created May 4, 2012 11:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save berzniz/2594221 to your computer and use it in GitHub Desktop.
Save berzniz/2594221 to your computer and use it in GitHub Desktop.
No booleans
if ((viewA.origin.y < viewB.origin.y) && (viewB.origin.y + viewB.size.height < viewA.origin.y + viewA.size.height)) {
[self doSomething];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment