开发者

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.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜