How to compensate the flipped coordinate system of core graphics for easy drawing?
Problem: Origin is at lower-left corner; positive y goes upward (negative y goes downward). Goal: Origin at upper-left corner; positive y going downward (negative y going upward). Solution: Move origin up by the view’s height. Negate (multiply by -1) the y axis. The way to do this in code is to translate up by the … Read more