Skip to content

一个有渐变动画效果的 loading 附带一个GCD定时器

Notifications You must be signed in to change notification settings

bardonnie/TCLoadingView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TCLoadingView

一个有渐变动画效果的 loading 附带一个GCD定时器

效果如下

Demo

[TCLoadingView setLineWide:1.0f];
[TCLoadingView setStartColor:[UIColor redColor]];
[TCLoadingView setEndColor:[UIColor yellowColor]];
[TCLoadingView setAnimationDuration:0.5f];
[TCLoadingView showWithView:self.view];
或者
[TCLoadingView showloadWithFrame:CGRectMake(100, 100, 100, 100)
                        lineWide:6.0f
                      startColor:[UIColor blueColor]
                        endColor:[UIColor whiteColor]
                        duration:1.0f
                            view:self.view];

代码参考

WCGradientCircleLayer

About

一个有渐变动画效果的 loading 附带一个GCD定时器

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published