I added a UIPageViewController for instructions in my new game, and I want to reject the UIPageViewController after the user clicks the βGOT ITβ button on the last UIViewController that connects to the UIPageViewController
I have tried this so far:
[self.pageVC dismissViewControllerAnimated:YES completion:nil];
And it does not remove the UIPageViewController , why?
And how can I let him go?
To show / present a UIPageViewController , I do this:
[self addChildViewController:self.pageVC]; [self.view addSubview:self.pageVC.view]; [self.pageVC didMoveToParentViewController:self];
10 times in advance!
source share