实现了一套自定义动画库
罗朝辉(http://blog.csdn.net/kesalin)
转载请注明出处
enum EaseType_ {
EaseType_None,
EaseType_In,
EaseType_Out,
EaseType_InOut,
};
typedef int EaseType;
enum AnimationType_ {
AnimationType_Linear,
AnimationType_Bounce,
AnimationType_Back,
AnimationType_Quartic,
AnimationType_Quintic,
AnimationType_Circular,
AnimationType_Cubic,
AnimationType_Quadratic,
AnimationType_Sinusoidal,
AnimationType_Elastic,
};
typedef int AnimationType;
使用例子:
// setup animation // propertyValue.duration = duration; propertyValue.easeType = EaseType_Out; propertyValue.animationType = AnimationType_Back; // AnimationType_Elastic // AnimationType_Back // AnimationType_Bounce // start animation [propertyValue setValue:targetValue];
带回滚效果的旋转 Pie 图:
带 Bounce效果的旋转菜单图:
有空了再整理实现思路,详细写篇文章,放出源码来。