I have a rectangular view at the center of a view in iPad. When I press a button I want that rectangular view to flip and show a modal view with some information. How can achieve this instead of flip all the entire main view?
Thanks in advance.
I have a rectangular view at the center of a view in iPad. When I press a button I want that rectangular view to flip and show a modal view with some information. How can achieve this instead of flip all the entire main view?
Thanks in advance.
Have a look at the different modal view transition styles:
I've got it!
This is the solution I've used:
[UIView transitionWithView:self.tutorialView
duration:0.4
options:UIViewAnimationOptionTransitionFlipFromLeft | UIViewAnimationOptionCurveEaseInOut
animations:^{
[[[self.tutorialView subviews] objectAtIndex:0] removeFromSuperview],
[self.tutorialView addSubview:infoView.view];
}
completion:^(BOOL finished){
}];