In accordance with the link to the tutorial that you asked.
There is an APPViewController , which is the root of the UIPageViewController , as well as in AppDelegate , so the Skip button is required at the top of this view, which is above all the subspecies in APPViewController . Thus, its IBAction event will only be in the APPViewController .
Now first change AppDelegate self.window.rootViewController to LoginViewController . In the LoginViewController event LoginViewController viewDidLoad presentModal UIPageViewController .
Now in your event the action of the skip button you can write like this:
[self dismissViewControllerAnimated:YES completion:nil];
Thus, it will automatically turn off all your AppChildViewControllers and display the LoginViewController , which is already behind.
This is just the basic logic to achieve your goal, you may need to change the code in accordance with the implementation of your project.
Hope this helps.
source share