Skip to content

Instantly share code, notes, and snippets.

@madebyjeffrey
Created June 25, 2010 03:36
Show Gist options
  • Save madebyjeffrey/452358 to your computer and use it in GitHub Desktop.
Save madebyjeffrey/452358 to your computer and use it in GitHub Desktop.
// The Controller:
// The controller is created:
viewDidLoad:
CGRect starsize = CGRectMake(0, 0, 2048, 2048);
self.starmap.scrollView.bounds = starsize;
self.starmap.frame = starsize;
[self.starmap setNeedsDisplay];
// Part of the view
- (void)drawRect:(CGRect)rect {
UIBezierPath *p = [UIBezierPath bezierPathWithRect: CGRectMake(100, 100, 1500, 1500)];
[[UIColor whiteColor] set];
p.lineWidth = 5;
[p stroke];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment