[TOC]ios
@(工具集合)[温故而知新]git
详细使用参考GitHub:lottie-ios程序员
Lottie作动画,专业的东西交给专业人作,真正解放程序员的生产力。github
启动(splash)动画:典型场景是APP logo动画的播放json
上下拉刷新动画:全部APP都必备的功能,利用 Lottie 能够作的更加简单酷炫了segmentfault
加载(loading)动画:典型场景是网络请求的loading动画bash
提示(tips)动画:典型场景是空白页的提示网络
按钮(button)动画:典型场景如switch按钮、编辑按钮、播放按钮等按钮的切换过渡动画工具
礼物(gift)动画:典型场景是直播类APP的高级动画播放post
视图转场动画(经过 LOTAnimationTransitionController
来实现 presentViewController
和 dismissViewControllerAnimated
转场动画)
不一样的设计,同一个设计不一样的时期,给出的动画素材名字多是同样的,这时候就须要开发人员本身给这些素材起名分类。
NSString* path = [[NSBundle mainBundle] pathForResource:bundleName ofType:@"bundle"];
LOTAnimationView *animation = [LOTAnimationView animationNamed:bundleName inBundle:[NSBundle bundleWithPath:path]];
复制代码