Created
April 12, 2011 15:52
-
-
Save curt-labs/915783 to your computer and use it in GitHub Desktop.
exec_bad_access when logging frame
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
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); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Line 6 spits out bad access