{% github it-boyer ArcProgressUI 4b9bc85 width = 30% %}
ArcProgressUI
Example
To run the example project, clone the repo, and run pod install
from the Example directory first.
Requirements
Installation
ArcProgressUI is available through CocoaPods. To install
it, simply add the following line to your Podfile:
API使用
独立进度表盘加载
1
2
3
4
5
| #import "ArcProgressView.h"
NSArray *viewArr = [[NSBundle mainBundle] loadNibNamed:@"ArcProgressView" owner:nil options:nil];
UIView *arcView = viewArr.lastObject;
arcView.backgroundColor = [UIColor redColor];
[self.view addSubview:arcView];
|
完整控制器页面
1
2
3
4
5
6
7
8
9
10
| #import "PatrolScoreViewController.h"
+(PatrolScoreViewController *)withStoryboard:(PatrolScoreStyle)style{
NSBundle *podbundle = [NSBundle bundleForClass:[PatrolScoreViewController class]];
NSURL *bundleURL = [podbundle URLForResource:@"ArcProgressUI" withExtension:@"bundle"];
NSBundle *bundle = [NSBundle bundleWithURL:bundleURL];
UIStoryboard *story = [UIStoryboard storyboardWithName:@"PatrolScore" bundle:bundle];
PatrolScoreViewController *VC = [story instantiateViewControllerWithIdentifier:@"PatrolScoreViewController"];
VC.scoreViewStyle = style;
return VC;
}
|
静态库开发:
设想:通过cocoapod管理静态库的依赖关系。在项目调用静态库