Skip to content

Instantly share code, notes, and snippets.

@curt-labs
Created April 12, 2011 15:52
Show Gist options
  • Save curt-labs/915783 to your computer and use it in GitHub Desktop.
Save curt-labs/915783 to your computer and use it in GitHub Desktop.
exec_bad_access when logging frame
if (pageControl == nil) {
pageControl = [[UIPageControl alloc] init];
pageControl.frame = CGRectMake(0, 0, scrollView.superview.frame.size.width, 15);
pageControl.bounds = CGRectMake(30, (scrollView.superview.frame.size.height -20), scrollView.superview.frame.size.width, 15);
//pageControl.center = CGPointMake((scrollView.frame.size.width +5), [[UIScreen mainScreen] applicationFrame].origin.y);
NSLog(@"frame = %@", pageControl.frame);
NSLog(@"bounds = %@", pageControl.bounds);
}
@curt-labs
Copy link
Author

Line 6 spits out bad access

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment