View之间切换的动态效果设置:
<wbr><wbr><wbr>SettingsController *settings = [[SettingsController alloc]initWithNibName:@"SettingsView" bundle:nil];<br><wbr><wbr><wbr>settings.modalTransitionStyle = UIModalTransitionStyleFl<wbr>ipHorizontal;<wbr>//水平翻转<br><wbr><wbr><wbr>[self presentModalViewControll<wbr>er:settings animated:YES];<br><wbr><wbr><wbr>[settings release];</wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr></wbr>
- (IBAction) activate:(UIView*)view
{
CGContextRef context =
UIGraphicsGetCurrentContext();
[UIView
beginAnimations:nilcontext:context];
[UIView
setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationDuration:CONST_animation_time];
[view setCenter:UpPointOfView(view)];
CABasicAnimation *scalingAnimation = (CABasicAnimation *)[view.layeranimationForKey:@"scaling"];
if (!scalingAnimation)
{
scalingAnimation = [CABasicAnimationanimationWithKeyPath:@"transform"];
scalingAnimation.repeatCount=1;
scalingAnimation.duration=CONST_animation_time;
scalingAnimation.autoreverses=NO;
scalingAnimation.timingFunction = [CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseOut];
scalingAnimation.fromValue=[NSValuevalueWithCATransform3D:CATransform3DMakeScale(1.0,1.0,
1.0)];
scalingAnimation.toValue=[NSValuevalueWithCATransform3D:CATransform3DMakeScale(CONST_enlarge_proportion,CONST_enlarge_proportion,
1.0)];
}
[view.layer addAnimation:scalingAnimationforKey:@"scaling"];
view.layer.transform =CATransform3DMakeScale(CONST_enlarge_proportion,CONST_enlarge_proportion,
1.0);
[UIView
commitAnimations];
}
- (IBAction) deactivate:(UIView*)view
{
CGContextRef context =
UIGraphicsGetCurrentContext();
[UIView
beginAnimations:nilcontext:context];
[UIView
setAnimationCurve:UIViewAnimationCurveEaseInOut];
[UIView
setAnimationDuration:CONST_animation_time];
[view setCenter:DownPointOfView(view)];
CABasicAnimation *scalingAnimation = (CABasicAnimation *)[view.layeranimationForKey:@"descaling"];
if (!scalingAnimation)
{
scalingAnimation = [CABasicAnimationanimationWithKeyPath:@"transform"];
scalingAnimation.repeatCount=1;
scalingAnimation.duration=CONST_animation_time;
scalingAnimation.autoreverses=NO;
scalingAnimation.timingFunction = [CAMediaTimingFunctionfunctionWithName:kCAMediaTimingFunctionEaseOut];
scalingAnimation.fromValue=[NSValuevalueWithCATransform3D:CATransform3DMakeScale(CONST_enlarge_proportion,CONST_enlarge_proportion,
1.0)];
scalingAnimation.toValue=[NSValuevalueWithCATransform3D:CATransform3DMakeScale(1.0,1.0,
1.0)];
}
[view.layer addAnimation:scalingAnimationforKey:@"descaling"];
view.layer.transform =CATransform3DMakeScale(1.0,1.0,
1.0);
[UIView
commitAnimations];
}
分享到:
相关推荐
Activate
ubuntu_activate_root ubuntu_activate_root
Visio 2013 Activate
atom炫酷效果 activate-power-mode 插件下载 atom炫酷效果 activate-power-mode 插件下载 atom炫酷效果 activate-power-mode 插件下载 atom炫酷效果 activate-power-mode 插件下载
从最早的ASAP,到适合云时代的activate,200多页的详细解说
–Sequence-Activators– Activate inputs in a sequence that trigger animations (eg. Down>Forward>P) for advanced combo creations –Sync-Activators– Combine inputs to trigger simultaneously (eg. A+S ...
activate-power-mode-master.zip 代码编辑器特效插件 可用于IntelliJ IDEA/Atom
activate-power-mode_v0.1.4.jar 让intellij idea 实现 atom打字效果,亲测可用,使用请在file=》setting=》plugins里面安装就好了。
for activatingc und c++ and c and c++ and c and c and c
idea工具酷炫插件activate-power-mode_v0.1.8,解压后可用,亲测有效
Activate-power-mode 是 atom 编辑器的一个炫酷插件,支持Pycharm Idea
SAP Activate全过程体验式服务解决方案.pptx
liquibase-postgresql.zip,添加其他PostgreSQL特定的Liquibase功能Liquibase Postgres扩展
atom for mac的activate-power-mode-1.1.0版本,方便网络一样悲剧的人,解压到~/.atom/packages下
官方版本,亲测可用
Activate Windows Photo Viewer on Windows 10
activate office asli
My first code to activate accont
官方版本,亲测可用