GithubHelp home page GithubHelp logo

livesendgift's Introduction

Hi there 👏

info

livesendgift's People

Contributors

cdpenggod avatar jonhory avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

livesendgift's Issues

Code4App 是一个移动平台的代码库。

hi 觉得您的文章写得不错,您可以授权文章发表在 http://www.code4app.com 上面么?期待您的回复!

Code4App 是一个移动平台的代码库。
Code4App 收集了 iOS 平台近 5 千份代码。
我们不需要造轮子,我们应该将我们的聪明才智发挥到其他更 牛逼 的创意上去。

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

在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会变成一个很大的值)

送的礼物过多以后,就不显示了

我这边是个直播项目,然后送的礼物次数到达一定次数以后最上面那一行就不显示动画了,然后是第二行不显示,最后整个都不显示了。

礼物出现无效果,消失无效果设置后,只送一个,不会消失,再送之后才会消失。

- (LiveGiftShowCustom *)customGiftShow{
    if (!_customGiftShow) {
        _customGiftShow = [LiveGiftShowCustom addToView:self.view];
        _customGiftShow.addMode = LiveGiftAddModeAdd;
        [_customGiftShow setMaxGiftCount:3];
        [_customGiftShow setShowMode:LiveGiftShowModeFromTopToBottom];
        [_customGiftShow setAppearModel:LiveGiftAppearModeNone];
        [_customGiftShow setHiddenModel:LiveGiftHiddenModeNone];
        [_customGiftShow enableInterfaceDebug:NO];
        _customGiftShow.delegate = self;
    }
    return _customGiftShow;
}

CPU 占有很高

在加载本地gif的时候cpu会暴增 <使用YYimage加载>
使用 时内存会暴增

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.