【发布时间】:2010-12-17 12:05:52
【问题描述】:
我有一个按钮点击拖 uiview 我正在做一些动画,比如使用这段代码..
// Second Uiview put it on bottom
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
self.AcTypeView.transform=CGAffineTransformMakeTranslation(0, 493);
[UIView commitAnimations];
//First uiview put it on top
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:2.0];
self.loginView.transform=CGAffineTransformMakeTranslation(0, -700);
[UIView commitAnimations];
然后我将我的 ipad 旋转到纵向模式到横向模式
但是第一个视图在横向模式下消失了,我想在横向模式下显示第一个视图,比如纵向模式..
我不知道这是否清楚,但请使用两个视图运行它并查看两种模式(横向和纵向)。
请帮帮我???提前致谢!!!!!
【问题讨论】:
标签: iphone xcode ipad animation transformation