关于动画Lottie

此第三方2017年开源

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

pod 'lottie-ios'

#import


@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)