Skip to content

Instantly share code, notes, and snippets.

@thomasdegry
Created January 21, 2015 22:39
Show Gist options
  • Save thomasdegry/6109786105d9361e98cd to your computer and use it in GitHub Desktop.
Save thomasdegry/6109786105d9361e98cd to your computer and use it in GitHub Desktop.
for(Cycle *cycle in self.cycleManager.cycleData) {
NSDateFormatter *formatter = [[NSDateFormatter alloc] init];
[formatter setDateFormat:@"YYYY-MM-dd"];
CardViewController *card = [[CardViewController alloc] initWithCycle:cycle];
card.view.frame = CGRectMake(xPos + 5, 0, self.scrollView.frame.size.width - 10, self.scrollView.frame.size.height);
[self.scrollView addSubview:card.view];
[self.cards addObject:card];
xPos = xPos + (screen.size.width - 44);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment