I need to switch between two subviews, for that I am using flip animation, but it flips whole screen not subview. Here is the code I used to flip:
UIView.tra
finally i got fix for this, we need to add frontView and backView to another View(container) not for self.view, then container will flip.