FlowCoverView How to force the view to move to a given image programmatically?
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 flo开发者_运维技巧wCover:self highlighted:index];
}
}
Set the mid image in draw method in flowcover class.
精彩评论