惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

月光博客
月光博客
Martin Fowler
Martin Fowler
博客园_首页
量子位
T
Tailwind CSS Blog
博客园 - Franky
G
Google Developers Blog
D
DataBreaches.Net
Vercel News
Vercel News
B
Blog
Recent Announcements
Recent Announcements
S
SegmentFault 最新的问题
M
MIT News - Artificial intelligence
爱范儿
爱范儿
博客园 - 【当耐特】
The Cloudflare Blog
H
Help Net Security
云风的 BLOG
云风的 BLOG
P
Proofpoint News Feed
C
Check Point Blog
有赞技术团队
有赞技术团队
Microsoft Security Blog
Microsoft Security Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

博客园 - 英怀

获取当前页面url中的参数 coffeescript+node.js+angular 转 iphone开发资料汇总(很多实用的东东) 给状态条加上图标的代码 设置uiview背景图的方法之一 xcode 4 下找EXC_BAD_ACCESS错误原因 转--如何解决EXC_BAD_ACCESS错误 再转动画实现 关于Iphone开发得一些案例及常用知识(转过来的参考用) 用uiwebview打开pdf,word,excel 网络请求侦听工具 整理 被appstore 拒绝审核通过的原因 Capture iPhone Simulator Screenshots 将NSString转换编码集变为GBK或GB2312 转,ios开源程序集 在程序中如何把两张图片合成为一张图片 怎么让一个UIImageView响应点击事件呢 object c 操作date类型 在model view中隐藏键盘代码 使用NSUserDefaults保存简单的用户数据
iphone view与view翻转的动画效果
英怀 · 2011-07-11 · via 博客园 - 英怀

- (void)onSwitchViews:(id)sender  

{  

if (secondViewController == nil)  

{  

ContitionSelectorPage *tempViewController = [[ContitionSelectorPage alloc] initWithFrame: CGRectMake(0, 44, self.view.frame.size.width,  self.view.frame.size.height-44) ];                  

secondViewController = [tempViewController retain];  

[tempViewController release];  

}  

[UIView beginAnimations:@"View Flip" context:nil];  

[UIView setAnimationDuration:1.25];  

[UIView setAnimationCurve:UIViewAnimationCurveEaseInOut];  

UIViewController *coming=nil;  

UIViewController *going=nil;  

UIViewAnimationTransition transition;  

if (firstViewController.view.superview == nil)   

{          

coming=firstViewController;  

going=secondViewController;  

transition=UIViewAnimationTransitionFlipFromRight;                  

}  

else  

{  

coming=secondViewController;  

going=firstViewController;  

transition=UIViewAnimationTransitionFlipFromLeft;  

}  

[UIView setAnimationTransition:transition forView:self.view cache:YES];  

[coming viewWillAppear:YES];  

[going viewWillDisappear:YES];  

[going.view removeFromSuperview];  

[self.view insertSubview:coming.view atIndex:0];  

[coming viewDidAppear:YES];  

[going viewDidDisappear:YES];  

[UIView commitAnimations];  

}