Skip to content

Commit

Permalink
Add all pre-defined transforms to the demo
Browse files Browse the repository at this point in the history
  • Loading branch information
Patrick Nollet committed Mar 11, 2014
1 parent f2ee32d commit 9216014
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Demo/Classes/LDMasterViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ - (IBAction)pickTransform:(id)sender {
delegate:self
cancelButtonTitle:@"Cancel"
destructiveButtonTitle:nil
otherButtonTitles:@"Fan", @"Curl", @"Fade", @"Helix", @"Wave", nil];
otherButtonTitles:@"Fan", @"Curl", @"Fade", @"Helix", @"Tilt", @"Flip", @"Wave", @"Grow", nil];
[actionSheet showFromBarButtonItem:sender animated:YES];
[actionSheet release];
}

#pragma mark - UIActionSheetDelegate
- (void)actionSheet:(UIActionSheet *)actionSheet clickedButtonAtIndex:(NSInteger)buttonIndex {
ADLivelyCollectionView * livelyCollectionView = (ADLivelyCollectionView *)self.view;
NSArray * transforms = [NSArray arrayWithObjects:ADLivelyTransformFan, ADLivelyTransformCurl, ADLivelyTransformFade, ADLivelyTransformHelix, ADLivelyTransformWave, nil];
NSArray * transforms = [NSArray arrayWithObjects:ADLivelyTransformFan, ADLivelyTransformCurl, ADLivelyTransformFade, ADLivelyTransformHelix, ADLivelyTransformTilt, ADLivelyTransformFlip, ADLivelyTransformWave, ADLivelyTransformGrow, nil];

if (buttonIndex < [transforms count]) {
livelyCollectionView.initialCellTransformBlock = [transforms objectAtIndex:buttonIndex];
Expand Down

0 comments on commit 9216014

Please sign in to comment.