There are 2 views “view1” & “view2”.
view1 on left side & view2 on right.
First view1 is displayed & then on button press view2 is called. view2 should be above view 1 but view1 should be disable and when user click on view1 then view2 disappear and view1 highlighted.

Thanks for any help.
What I would do is, as a simple solution:
When
View1is Pressed to AnimateView2into place, overlay a transparentUIButtonoverView1. This will cover all the subviews ofView1and when the area is selected, you animateView2out of place and highlightView1and remove the transparent button.Hope this makes sense !
UPDATE: Decided to provide a brief example, as it will probably make more sense.