Skip to content

Instantly share code, notes, and snippets.

@sgoodwin
Created August 29, 2011 19:18
Show Gist options
  • Save sgoodwin/1179159 to your computer and use it in GitHub Desktop.
Save sgoodwin/1179159 to your computer and use it in GitHub Desktop.
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