LLARingSpinnerView 0.1.4

LLARingSpinnerView 0.1.4

测试已测试
语言语言 Obj-CObjective C
许可证 MIT
发布日期最新版本2016年7月

Lukas Lipka 维护。



LLARingSpinnerView 是一个用于显示不定进度的好看的自旋视图,您可以在您的应用中使用它。

  • 简单 API
  • 尊重界面色调颜色
  • 当显示警告视图或操作表时自动降低色调颜色
  • iOS7 兼容

示例

Screenshot

打开附带 Xcode 项目以查看示例应用。

用法

// Initialize the progress view
LLARingSpinnerView *spinnerView = [[LLARingSpinnerView alloc] initWithFrame:CGRectMake(0, 0, 40, 40)];

// Optionally set the current progress
spinnerView.lineWidth = 1.5f;

// Optionally change the tint color
spinnerView.tintColor = [UIColor redColor];

// Add it as a subview
[self.view addSubview:spinnerView];

...

// Spin it
[spinnerView startAnimating];

// Stop animation
[spinnerView stopAnimating];

请参见 头文件 获取完整文档。

安装

CocoaPods 是推荐安装 LLARingSpinnerView 的方法。只需将以下行添加到您的 Podfile

Podfile

pod 'LLARingSpinnerView'

否则,您可以直接将 LLARingSpinnerView.hLLARingSpinnerView.m 添加到您的项目中。

需求

LLARingSpinnerView 在 iOS7 上进行过测试且需要 ARC。

联系方式

Lukas Lipka

许可证

LLARingSpinnerView 可在 MIT 许可证下使用。请参阅 LICENSE 文件获取更多信息。