Created
August 29, 2011 19:18
-
-
Save sgoodwin/1179159 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CGFloat maxX = 0.0f; | |
CGFloat maxY = 0.0f; | |
[self.points enumerateObjectsUsingBlock:^(id obj, NSUInteger idx, BOOL *stop){ | |
CGPoint point = [obj CGPointValue]; | |
if(point.x > maxX){ | |
maxX = point.x; | |
} | |
if(point.y > maxY){ | |
maxY = point.y; | |
} | |
}]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment