文章来源:淘论文网   发布者: 毕业设计   浏览量: 28



还可以点击去查询以下关键词:
[天气]    [动画]    [定制]    [墨迹]    [天气动画,定制仿墨迹天气]   

项目介绍:

Weather

墨迹天气,论文,天气预报,动态天气,开题报告,天气Animation

GitHub: https://github.com/Zws-China/Weather

PhotoShoot



How To Use //动画横向移动方法 - (CABasicAnimation *)birdFlyAnimationWithToValue:(NSNumber *)toValue duration:(NSInteger)duration{ CABasicAnimation *animation = [CABasicAnimation animationWithKeyPath:@'transform.translation.x']; animation.toValue = toValue; animation.duration = duration; animation.removedOnCompletion = NO; animation.repeatCount = MAXFLOAT; animation.fillMode = kCAFillModeForwards; return animation; } //动画旋转方法 - (CABasicAnimation *)sunshineAnimationWithDuration:(NSInteger)duration{ //旋转动画 CABasicAnimation* rotationAnimation = [CABasicAnimation animationWithKeyPath:@'transform.rotation.z']; rotationAnimation.toValue = [NSNumber numberWithFloat: M_PI * 2.0 ]; [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; rotationAnimation.duration = duration; rotationAnimation.repeatCount = MAXFLOAT;//你可以设置到最大的整数值 rotationAnimation.cumulative = NO; rotationAnimation.removedOnCompletion = NO; rotationAnimation.fillMode = kCAFillModeForwards; return rotationAnimation; } //下雨动画方法 - (CABasicAnimation *)rainAnimationWithDuration:(NSInteger)duration{ CABasicAnimation* caBaseTransform = [CABasicAnimation animation]; caBaseTransform.duration = duration; caBaseTransform.keyPath = @'transform'; caBaseTransform.repeatCount = MAXFLOAT; caBaseTransform.removedOnCompletion = NO; caBaseTransform.fillMode = kCAFillModeForwards; caBaseTransform.fromValue = [NSValue valueWithCATransform3D:CATransform3DMakeTranslation(-170, -620, 0)]; caBaseTransform.toValue = [NSValue valueWithCATransform3D:CATransform3DMakeTranslation(kScreenHeight/2.0*34/124.0, kScreenHeight/2, 0)]; return caBaseTransform; } //透明度动画 - (CABasicAnimation *)rainAlphaWithDuration:(NSInteger)duration { CABasicAnimation *showViewAnn = [CABasicAnimation animationWithKeyPath:@'opacity']; showViewAnn.fromValue = [NSNumber numberWithFloat:1.0]; showViewAnn.toValue = [NSNumber numberWithFloat:0.1]; showViewAnn.duration = duration; showViewAnn.repeatCount = MAXFLOAT; showViewAnn.fillMode = kCAFillModeForwards; showViewAnn.timingFunction = [CAMediaTimingFunction functionWithName:kCAMediaTimingFunctionEaseInEaseOut]; showViewAnn.removedOnCompletion = NO; return showViewAnn; }


这里还有:


还可以点击去查询:
[天气]    [动画]    [定制]    [墨迹]    [天气动画,定制仿墨迹天气]   

请扫码加微信 微信号:sj52abcd


下载地址: http://www.taolw.com/down/7509.docx
  • 上一篇:快速创建蒙版效果定制并弹出自定义视图
  • 下一篇:YBProgressHUD-优化MBPro毕业设计gressHUD和SVProgressHUD相关功能