[翻译] AJProgressPanel

简介:

AJProgressPanel

Animated progress panel

可做动画的进度条

  • No images needed, all CoreGraphics code 不需要图片,使用CoreGraphics绘制的图片
  • Works on iPhone and iPad (resolution independent) 支持iPhone与iPad

 

 

 

Example Usage

Add QuartzCore.framework and drop the AJProgressPanel folder in your project

添加 QuartzCore.framework  框架,然后将 AJProgressPanel 文件夹拖到你的项目中。  

//Default style
AJProgressPanel *panel = [AJProgressPanel showInView:self.view]; //show
//...Your code...
[panel setProgress:0.6f animated:YES]; //change progress
//...Your code...
[panel hideAnimated:YES]; //hide
// Custom
AJProgressPanel *panel2 = [AJProgressPanel showInView:self.secondView position:AJPanelPositionBottom];
panel2.enableShadow = NO;
panel2.startGradientColor = [UIColor colorWithWhite:0.35f alpha:1.0f]; panel2.endGradientColor = [UIColor colorWithWhite:0.25f alpha:1.0f]; panel2.stripesColor = [UIColor colorWithRed:40.0f/255 green:140.0f/255 blue:193.0f/255 alpha:1.0f]; panel2.progressColor = [UIColor colorWithRed:50.0f/255 green:170.0f/255 blue:193.0f/255 alpha:0.7f]; //...Your code... [panel2 setProgress:0.4f animated:YES]; //change progress //...Your code... [panel2 hideAnimated:YES]; //hide

 

Future improvements

  • Code rafactoring 代码重构
  • Fix animation stop in setProgress 在setProgress中修复动画停止的问题

 

Contact

Twitter: @alberto_jrz

 

License - MIT

Copyright (c) 2012 Alberto Jerez - CodeApps

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

目录
相关文章
|
算法 Swift iOS开发
高级 SwiftUI 动画 — Part 1:Paths
在本文中,我们将深入探讨一些创建 SwiftUI 动画的高级技术。我将广泛讨论 Animatable 协议,它可靠的伙伴 animatableData,强大但经常被忽略的 GeometryEffect 以及完全被忽视但全能的 AnimatableModifier 协议。
227 0
高级 SwiftUI 动画 — Part 1:Paths
|
C#
WPF: FishEyePanel/FanPanel - 自定义Panel
原文:WPF: FishEyePanel/FanPanel - 自定义Panel 原文来自CodeProject,主要介绍如何创建自定义的Panel,如同Grid和StackPanel。
1278 0
UWP FillRowViewPanel
原文:UWP FillRowViewPanel 最近有童鞋有这种需求,说实话我不知道这个Panel怎么起名字。 效果连接https://tuchong.com/tags/风光/ 下面是我做成的效果,可以规定每个Row的Items个数 2个 3个 4个 代码在:GitHub 下面我来说一下我的思路 其实很早之前就写过这种可变大小的控件,但这次的跟这个需求有点变化,这个每一行个数一定,大小根据图片的大小进行填充。
981 0
|
前端开发 容器
【全面解禁!真正的Expression Blend实战开发技巧】十一章 全面解析布局(Grid & Canvas &StackPanel &Wrappanel)
原文:【全面解禁!真正的Expression Blend实战开发技巧】十一章 全面解析布局(Grid & Canvas &StackPanel &Wrappanel)   写这篇文章前,特意在百度搜索了一下,发现目前网上介绍布局的文章不多,质量也不是很高。
998 0
零元学Expression Blend 4 - Chapter 47 超简单!运用StackPanel配合OpacityMask做出倒影效果
原文:零元学Expression Blend 4 - Chapter 47 超简单!运用StackPanel配合OpacityMask做出倒影效果 有网友问我如何在Blend内制作出倒影效果 我提供了一...
1284 0
|
前端开发 Windows 容器
背水一战 Windows 10 (38) - 控件(布局类): Panel, Canvas, RelativePanel, StackPanel, Grid
原文:背水一战 Windows 10 (38) - 控件(布局类): Panel, Canvas, RelativePanel, StackPanel, Grid [源码下载] 背水一战 Windows 10 (38) - 控件(布局类): Panel, Canvas, RelativePanel...
1017 0
UWP开发入门(二)——RelativePanel
原文:UWP开发入门(二)——RelativePanel   RelativePanel也是Win10 UWP新增的控件,和上篇提到的SplitView一样在UWP的UI布局起到非常重要的作用。说句实在话,这货其实就是为了UWP的Adaptive UI而特意增加的,由于他的功能和DockPanel有...
1335 0