Created
January 21, 2015 22:39
-
-
Save thomasdegry/6109786105d9361e98cd 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
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