测试已测试 | ✗ |
Lang语言 | Obj-CObjective C |
许可 | MIT |
发布最后发布 | 2014年12月 |
由 Endika Gutiérrez 维护。
GSIndeterminateProgressView 是 UIView 的子类,它看起来像是 UIProgressView,但像 UIActivityIndicatorView 一样工作。
要运行示例项目;先从仓库中克隆,然后从 Example 目录中运行 pod install
。
导入 GSIndeterminateProgressView.h
UINavigationBar *navigationBar = self.navigationController.navigationBar;
GSIndeterminateProgressView *progressView = [[GSIndeterminateProgressView alloc] initWithFrame:CGRectMake(0, navigationBar.frame.size.height - 2,
navigationBar.frame.size.width, 2)];
progressView.progressTintColor = navigationBar.barTintColor;
progressView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleTopMargin;
[navigationBar addSubview:progressView];
[progressView startAnimating];
Endika Gutiérrez,[email protected]
GSIndeterminateProgressBar 在 MIT 许可下提供。有关更多信息,请参阅 LICENSE 文件。