Skip to content

Instantly share code, notes, and snippets.

@benlangfeld
Created September 3, 2010 21:07
Show Gist options
  • Save benlangfeld/564570 to your computer and use it in GitHub Desktop.
Save benlangfeld/564570 to your computer and use it in GitHub Desktop.
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];
@nickjs
Copy link

nickjs commented Sep 3, 2010

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