iOS自定义控件及相关iOS点点滴滴

TTCircularLoadingView

2018-03-05  本文已影响6人  7d3fadbb4407

1.TTCircularLoadingView

A circular loading view, can set up success or fail state.
一个圆形的加载view,可以设置成功或失败的状态。

Wide and high optional Settings, circular loading view will automatically match.
宽高随意设置,圆形加载view会自动适配。

2.GIF视图

loadingView.gif

3.使用

(1)代码使用:

CGRect yourRect;
TTLoadingView *loadingView = [[TTLoadingView alloc] initWithFrame:yourRect];
[self.view addSubview:loadingView];
[loadingView startLoading];

(2)Xib使用:

拉个系统View,将该View的class配置成TTLoadingView即可。

下载地址:

https://github.com/xushixun16/TTCircularLoadingView

上一篇 下一篇

猜你喜欢

热点阅读