UIView
子类,模仿 iOS 中 Twitter 进度条。
将 THProgressView/
的内容拖入您的项目。
THCircularProgressView
仅是一个 UIView
子类,所以只需实例化它并将其添加到视图层级中。
CGRect rect = ...
THProgressView *progressView = [[THProgressView alloc] initWithFrame:rect];
progressView.borderTintColor = [UIColor whiteColor];
progressView.progressTintColor = [UIColor whiteColor];
[progressView setProgress:0.5f animated:YES]; // floating-point value between 0.0 and 1.0
/Demo
中的示例项目包含了一些示例。