There are several ways to switch from one viewcontroller to another viewcontroller:
(1) Addsubview method switch View self.view addsubview: (New page loaded); The corresponding [Self.view Removefromsuperview]; Remove the added view (2) Self.view Insertsubview: (New page loaded) atindex:n; Explanation of N: The pages are stacked in layers, n means loading to that level above (3) Presentmodalviewcontroller method
Photonaccontroller.modaltransitionstyle = Uimodaltransitionstylecrossdissolve;
Photonaccontroller.modalpresentationstyle = Uimodalpresentationfullscreen;
Self Presentmodalviewcontroller: (new page loaded) Animated:modaltransitionstyle the animation used to set the page toggle Modalpresentationstyle for setting the view display Two ways to try to know the use of!(4)Pushviewcontroller navigation [Self.navigationcontroller Pushviewcontroller: (New page loaded) Animated:yes]; corresponding to the
[Self.navigationcontroller Popviewcontrolleranimated:yes];
Page switching for iOS development