Created
September 3, 2010 21:07
-
-
Save benlangfeld/564570 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
var mainViewBounds = [[[CPApp delegate] mainView] bounds], | |
scrollViewSize = CGRectMake( | |
mainViewBounds.origin.x, | |
mainViewBounds.origin.y + 100.0, | |
mainViewBounds.size.width, | |
mainViewBounds.size.height - 100.0 | |
), | |
scrollView = [[CPScrollView alloc] initWithFrame:scrollViewSize]; |
var scrollView = [[CPScrollView alloc] initWithFrame:CGRectInset([[[CPApp delegate] mainView] bounds], 0.0, 100.0)];
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
var bounds = CGRectMakeCopy([[[CPApp delegate] mainView] bounds]);
bounds.origin.y += 100.0;
bounds.size.height -= 100.0;
var scrollView = [[CPScrollView alloc] initWithFrame:bounds];