[翻译] MMMaterialDesignSpinner
2015-02-07 22:03
169 查看
MMMaterialDesignSpinner
Usage
To run the example project, clone the repo, and run
首先,通过pod安装,然后运行项目。
The
线宽和填充颜色的属性,设置可以在做动画阶段动态设置,你可以在项目中看看怎么设置的。
Requirements
CoreGraphics
Installation
MaterialDesignSpinner is available through CocoaPods. To install it, simply add the following line to your Podfile:
MaterialDesignSpinner可以通过 CocoaPods 安装。执行以下一句话即可:
Author
Mike Maxwell, mmaxwell@vertical.com
Mike Maxwell,邮箱是 mmaxwell@vertical.com
License
MMMaterialDesignSpinner is available under the MIT license. See the LICENSE file for more info.
MMMaterialDesignSpinner支持MIT协议,请查看MIT协议了解更多的信息。
Usage
To run the example project, clone the repo, and run
pod installfrom the Example directory first.
首先,通过pod安装,然后运行项目。
// Initialize the progress view MMMaterialDesignSpinner *spinnerView = [[MMMaterialDesignSpinner alloc] initWithFrame:CGRectMake(0, 0, 40, 40)]; // Set the line width of the spinner spinnerView.lineWidth = 1.5f; // Set the tint color of the spinner spinnerView.tintColor = [UIColor redColor]; // Add it as a subview [self.view addSubview:spinnerView]; ... // Start & stop animations [spinnerView startAnimating]; [spinnerView stopAnimating];
The
lineWidthand
tintColorproperties can even be set after animating has been started, which you can observe in the included example project.
线宽和填充颜色的属性,设置可以在做动画阶段动态设置,你可以在项目中看看怎么设置的。
Requirements
CoreGraphics
Installation
MaterialDesignSpinner is available through CocoaPods. To install it, simply add the following line to your Podfile:
MaterialDesignSpinner可以通过 CocoaPods 安装。执行以下一句话即可:
pod "MMMaterialDesignSpinner"
Author
Mike Maxwell, mmaxwell@vertical.com
Mike Maxwell,邮箱是 mmaxwell@vertical.com
License
MMMaterialDesignSpinner is available under the MIT license. See the LICENSE file for more info.
MMMaterialDesignSpinner支持MIT协议,请查看MIT协议了解更多的信息。
相关文章推荐
- 原创翻译:在Eclipse中使用jigloo(像JB中使用Design面板一样)第一部分
- Object-Oriented Analysis and Design Using UML 翻译与学习 (序)
- Object-Oriented Analysis and Design Using UML 翻译与学习 (一)
- Object-Oriented Analysis and Design Using UML 翻译与学习 (三)
- Object-Oriented Analysis and Design Using UML 翻译与学习 (十二)
- Object-Oriented Analysis and Design Using UML 翻译与学习 (二)
- V8 Design Elements(翻译)
- JIT 编译器文档翻译 _ jit-compiler-design.txt
- QUIC Design Documentand Specification Rationale(二)(即时翻译,有多处错误)
- QUIC Design Documentand Specification Rationale(四)(即时翻译,会有多处错误)
- Hello Views之Spinner(yaozq翻译,仅供参考)
- Object-Oriented Analysis and Design Using UML 翻译与学习 (十一)
- Chromium Design Document学习及翻译之Multi-process Architecture
- Object-Oriented Analysis and Design Using UML 翻译与学习 (五)
- [翻译]Triggerless design.md
- MAC OS X 设备驱动开发翻译(I/O Kit Device Driver Design Guidlines) (一)
- MAC OS X 设备驱动开发翻译(I/O Kit Device Driver Design Guidlines) (二)libkern C++运行时 【本文档终结翻译】
- AS3 Strategy策略模式翻译(Design Patterns in ActionScript)
- 翻译预告Introduction to 3D Game Engine Design Using DirectX 9 and C#
- Object-Oriented Analysis and Design Using UML 翻译与学习 (四)