Reputation: 1073
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.
Upvotes: 0
Views: 316
Reputation: 14235
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];
Upvotes: 2