2013年6月7日

ios开发 各种动画效果

摘要: .h文件中@interface ViewController:UIViewController{ IBOutlet UIImageView *imageView;}一、UIView 简单的动画效果(UIViewAnimation)1.向上翻页[UIView beginAnimations:@"animationID" context:nil];[UIView setAnimationDuration:8];[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];[UIWindow setAnimationsEnabled 阅读全文

posted @ 2013-06-07 13:05 Hai_阔天空 阅读(2409) 评论(0) 推荐(0)

ios开发 按钮点击后翻转效果

摘要: (1)引入“QuartzCore.framework”库,头部引用。#include<QuartzCore/QuartzCore.h>(2)直接上代码,你懂的。-(IBAction)buttonP:(id)sender{ [self buttonAnimation:sender];}- (CAAnimation *) animationRotate { CATransform3D rotationTransform = CATransform3DMakeRotation( M_PI/2 , 0 , 1 , 0 ); CABasicAnimation* animation; ... 阅读全文

posted @ 2013-06-07 09:29 Hai_阔天空 阅读(329) 评论(0) 推荐(0)

导航