Assuming your Tab is a view controller and each of your pages are views,
Simple solution would be, just adjust your two views to be in the same view controller, meaning both should have the same coordinates and hide one of them accordingly like if you want to show the first page/view hide second page/view and vice versa.