美文网首页
关于动画Lottie

关于动画Lottie

作者: 白雪天枫 | 来源:发表于2018-05-30 18:20 被阅读12次

    此第三方2017年开源

    platform :ios, '9.0'  要9.0以上包含9.0 

    pod 'lottie-ios'

    #import<Lottie/Lottie.h>


    @property (nonatomic, strong) LOTAnimationView *lottieLogo;

    self.lottieLogo = [LOTAnimationView animationNamed:@"let's_go.json"]; self.lottieLogo.contentMode = UIViewContentModeScaleAspectFill; self.lottieLogo.frame = CGRectMake(0, 100, self.view.bounds.size.width, self.view.bounds.size.height * 0.3);

        [self.view addSubview:self.lottieLogo];

        self.lottieLogo.loopAnimation = YES;

        [self.lottieLogo play];

    相关文章

      网友评论

          本文标题:关于动画Lottie

          本文链接:https://www.haomeiwen.com/subject/jiexsftx.html