[英]how to make the animation between one view to another view in uitabbarcontroller
I want the animation between the two viewcontrollers in uitabbarcontroller. 我想要uitabbarcontroller中的两个viewcontrollers之间的动画。
I am having the two tabbar. 我有两个标签栏。 The first one open by default when run the app.I want the animation,while i go to the second tabbar.How can i do this.
默认情况下,第一个在运行应用程序时打开。我想要动画,而我转到第二个标签栏。我该怎么做。
Thanks 谢谢
In the View Will appear of your firstViewController you should have something like 在firstViewController的“视图将出现”中,您应该有类似
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationTransition:UIViewAnimationTransitionFlipFromRight
forView:self.view cache:YES];
[UIView setAnimationCurve:UIViewAnimationCurveEaseOut];
[UIView commitAnimations];
}
Then in the secondviewcontroller have the same thing but UIViewAnimatinTransitionFlipFromleft 然后在secondviewcontroller中具有相同的东西,但UIViewAnimatinTransitionFlipFromleft
However let me know how this goes, because for some reason in the app I was making I had a little trouble on the view first transition then it would work fine after that. 但是,请让我知道这是怎么回事,因为由于某种原因,我在应用程序中使我在视图第一次转换时遇到了一些麻烦,然后在此之后仍然可以正常工作。 If you suffer from the same problem maybe we can work together for a solution.
如果您遇到相同的问题,也许我们可以共同寻求解决方案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.