tags:

views:

18

answers:

1

I have implemenetd one animation application.In which there is one main view and another is subview in that view.There is also one button.When user touch on that button i want to disply subview with animation.That view must be display from bottom to top.How it possible.I dont know how it possible.

+2  A: 

Try the next code:

[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:0.75];

// swap the views and transition
[UIView setAnimationTransition:UIViewAnimationTransitionCurlUp 
                       forView:self.view 
                         cache:YES];

[originalSubview removeFromSuperview];
[self.view addSubview:thumbnailView];

[UIView commitAnimations];
Michael Kessler