Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

CoverFlow API replacement for the iPhone

branch: master
README
Original CoverFlow classes by Alex Fajkowski (2009)
Modified by Árpád Goretity (2012)

Usage:

  // ...
  UIImage *image1 = [UIImage imageNamed:@"image1.png"]; // etc.
  NSArray *images = [NSArray arrayWithObjects:image1, image2, image3, NULL];
  UIImage *defaultImage = [UIImage imageNamed:@"NoOtherCover.png"];
  // ...
  AFOpenFlowView *coverFlow = [[AFOpenFlowView alloc] initWithFrame:CGRectMake(0.0, 120.0, 320.0, 280.0)];
  coverFlow.viewDelegate = self;
  coverFlow.dataSource = self;
  coverFlow.numberOfImages = [images count];
  [aView addSubview:coverFlow];
  // ...
  
  // AFOpenFlowViewDelegate
  - (void)openFlowView:(AFOpenFlowView *)openFlowView selectionDidChange:(int)index
  {
    NSLog(@"Selected image # %d", index);
  }
  
  // AFOpenFlowViewDataSource
  - (void)openFlowView:(AFOpenFlowView *)openFlowView requestImageForIndex:(int)index
  {
    [openFlowView setImage:[images objectAtIndex:index] forIndex:index];
  }
  
  - (UIImage *)defaultImage
  {
    return defaultImage;
  }

Something went wrong with that request. Please try again.