CoverFlow API replacement for the iPhone
Objective-C C
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits ahead of thefaj:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
AFItemView.h
AFItemView.m
AFOpenFlowConstants.h
AFOpenFlowView.h
AFOpenFlowView.m
AFUIImageReflection.h
AFUIImageReflection.m
Makefile
README

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;
  }