iPhone xCode |滑动UIView
如何从UIView转换到其他视图,如从左或右幻灯片?除了、参考和。阅读开发人员文档,你就不必问这个问题了。这样写iPhone xCode |滑动UIView,iphone,xcode,ios,Iphone,Xcode,Ios,如何从UIView转换到其他视图,如从左或右幻灯片?除了、参考和。阅读开发人员文档,你就不必问这个问题了。这样写 [UIView beginAnimations:@"" context:NULL]; //The new position for view1 [myview1 setFrame: CGRectMake(0,0,320,100)]; //The new position for view2 [myview2 setFrame: CGRectMake(320, 0, 320, 10
[UIView beginAnimations:@"" context:NULL];
//The new position for view1
[myview1 setFrame: CGRectMake(0,0,320,100)];
//The new position for view2
[myview2 setFrame: CGRectMake(320, 0, 320, 100)];
//The animation duration
[UIView setAnimationDuration:2.0];
[UIView setAnimationDelay: UIViewAnimationCurveEaseIn];
[UIView commitAnimations];
该示例名为ViewTransitions,谢谢texmex5您的答案应该是可接受的。在谷歌搜索“uiview Committenimations”时,我找到了一个示例项目