After setting up a PageViewController I'd like to remove the view controllers inside, leaving it empty.
How can I do this?
I've tried the setViewControllers:direction:animated:completion:
method passing nil
or an empty array in the viewControllers param but it crashes.
How can I do this?
If calling setViewControllers:direction:animated:completion:
with nil
for the viewControllers
parameter crashes, try setting the view controllers to an array with a single empty view controller.
[pageViewController setViewControllers:@[UIViewController.new] direction:direction animated:true completion:nil];
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With