Skip to content

Instantly share code, notes, and snippets.

@jfahrenkrug
Created September 8, 2009 14:04
Show Gist options
  • Save jfahrenkrug/182933 to your computer and use it in GitHub Desktop.
Save jfahrenkrug/182933 to your computer and use it in GitHub Desktop.
/* ------------ Locations --------------- */
locationListView = [[LocationListView alloc] initWithFrame:CGRectMake(0.0, 0.0, 226.0, 400.0)];
[locationListView setContent:[locationsController locations]];
//1: we'll add something later
/* --------- Locations ScrollView ---------- */
var locationScrollView = [[CPScrollView alloc] initWithFrame:CGRectMake(10.0, 65.0, 243.0, 400.0)];
[locationScrollView setDocumentView:locationListView];
[locationScrollView setAutohidesScrollers:YES];
[[locationScrollView contentView] setBackgroundColor:[CPColor whiteColor]];
[contentView addSubview:locationScrollView];
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment