GSIndeterminateProgressBar 0.1.0

GSIndeterminateProgressBar 0.1.0

测试已测试
Lang语言 Obj-CObjective C
许可 MIT
发布最后发布2014年12月

Endika Gutiérrez 维护。




  • 作者:
  • Endika Gutiérrez

GSIndeterminateProgressViewUIView 的子类,它看起来像是 UIProgressView,但像 UIActivityIndicatorView 一样工作。

使用方式

要运行示例项目;先从仓库中克隆,然后从 Example 目录中运行 pod install

Capture

导入 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 文件。