-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Is PageTabBarController possible to dynamicly arrange view controllers? #608
Comments
Have you tried this function: open func setViewControllers(_ viewControllers: [UIViewController], direction: UIPageViewControllerNavigationDirection, animated: Bool, completion: ((Bool) -> Void)? = nil) It allows you to set the Array of UIViewControllers. |
yes, I have tried. |
Okay, I will take a look. I am planning to update the PageTabBar this week, so I will investigate today to help you out, and then release a new PageTabBar. Thanks :) |
Thank you very much.I'll be waiting to hear from you. |
Hey, I didn't forget about this issue. I will be able to focus on it within the next couple days. Sorry for any delays. |
Thank you very much!!! |
the same error |
Hi, I need your help! I can't rewrite the amount of open func setViewControllers(_ viewControllers: [UIViewController], direction: UIPageViewControllerNavigationDirection, animated: Bool, completion: ((Bool) -> Void)? = nil) |
For reference open func setViewControllers(_ viewControllers: [UIViewController], direction: UIPageViewControllerNavigationDirection, animated: Bool, completion: ((Bool) -> Void)? = nil) to show the page you want. Simply: pageTabBarController.viewControllers = viewControllers
pageTabBarController.setViewControllers([viewControllers[0]], direction: .forward, animated: true) |
@asyl Thank you for sharing. I am working on an update to simplify switching view controllers. Your reference is very helpful :) |
You can now use the pageTabBarController.selectedIndex = 3 Thank you! |
@DanielDahan Thanks a lot. I 'll try it later :) |
I want to insert or delete view controllers corresponding to user operation.
Is it possible?
The error message popped out while doing so.
The number of view controllers provided (3) doesn't match the number required (1) for the requested transition
The text was updated successfully, but these errors were encountered: