开发者

FlowCoverView How to force the view to move to a given image programmatically?

开发者 https://www.devze.com 2023-03-13 22:04 出处:网络
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'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

精彩评论

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

关注公众号