2

I'm using FlowCoverView, an open source (and AppStore compliant) alternative to Apple's cover flow (you can find it here http://chaosinmotion.com/flowcover.m)

I'd like to modify the code so that you can force the view to start from (or to move to) a specific image programmatically, given its index. I'm not being successful though :(

Solution:

-(void)goToIndex:(NSUInteger)index
{
    if (index<[self numTiles])
    {
        offset = index;
        [self draw];
        //[delegate flowCover:self highlighted:index];
    }
}
showerapps
  • 252
  • 2
  • 10

1 Answers1

1

Set the mid image in draw method in flowcover class.

BenMorel
  • 34,448
  • 50
  • 182
  • 322
Mitesh Khatri
  • 3,935
  • 4
  • 44
  • 67
  • Great! I was moving in the animate direction (setting the offset and startPos vars and then launching startAnimation) to have a smoother effect (still have problems with that), but your solution is more straightforward... – showerapps Jun 20 '11 at 11:39
  • for this you need to edit and touch begin and touch end event. – Mitesh Khatri Jun 20 '11 at 13:34
  • I also need the solution, can you give a bit explaination? Mitesh Khatri – Reyjohn Feb 21 '13 at 12:12