-
-
Save chaitanyagupta/7024530 to your computer and use it in GitHub Desktop.
Use CGRectGetHeight() instead of accessing height directly.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It should be obvious, but if anyone is here from googling why use CGRectGetHeight etc. instead of accessing height/weight directly - It's because CGRect structures might store height and weight in negative values. (Documentation.)