Skip to content

Files

Latest commit

author
yuzeyang
Sep 5, 2016
7a95f17 · Sep 5, 2016

History

History

GCLoadingAnimationOne

GCLoadingAnimationOne

Introduction

This is a loading animation

Gif

the triangle has a rotate anmation,but the gif can't show it…you can run the demo see the effect.

how to use

add GCLoadingLayer in your view,and set the frame,then startAnimation

self.loadingLayer = [GCLoadingLayer layer];
self.loadingLayer.frame = CGRectMake(GCLoadingLayerCenterX, GCLoadingLayerCenterY, 100, 100);
[self.view.layer addSublayer:self.loadingLayer];
[self.loadingLayer startAnimation];

Related articles

加载动画分析