一款优雅的加载指示器:DGActivityIndicatorView
jopen
10年前
一款优雅的加载指示器, 包含 6 种不同的加载风格可供选择。
Requirements
- Xcode 6 or higher
- Apple LLVM compiler
- iOS 8.0 or higher (May work on previous versions, just did not testit. Feel free to edit it).
- ARC
Demo
Open and run the DGActivityIndicatorExample project in Xcode to see DGActivityIndicatorView in action.
Installation
Manual install
All you need to do is drop DGActivityIndicatorView folder into your project and include headers.
Example usage
DGActivityIndicatorView *activityIndicatorView = [[DGActivityIndicatorView alloc] initWithType:DGActivityIndicatorAnimationTypeDoubleBounce tintColor:[UIColor whiteColor] size:20.0f]; activityIndicatorView.frame = CGRectMake(0.0f, 0.0f, 50.0f, 50.0f); [self.view addSubview:activityIndicatorView]; [activityIndicatorView startAnimating];