Skip to content

当预先加载3个以上的数据时,会出现问题 #19

Closed
@markogu

Description

在testVC中添加这段代码。

  • (void)viewDidAppear:(BOOL)animated {
    [super viewDidAppear:animated];
    for (int i = 0; i<5; i++) {
    LiveGiftShowModel * model = [LiveGiftShowModel giftModel:self.giftArr[i] userModel:self.firstUser];
    model.toNumber = 10;
    model.interval = 0.15;
    [self.customGiftShow animatedWithGiftModel:model];
    }
    }

预加载礼物,3个以内是没问题的,3个以上的话,如果使用的是animatedWithGiftModel的话,后面加入的数字会一直累加(我发现是加载3个以上时toNumber会变成一个很大的值)

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions