我想在最后一页隐藏页面视图控制器指示点!我的问题是我可以在最后一页隐藏它们,但当我回到上一页时我可以再次看到它们
这是我的代码
func pageViewController(_ pageViewController: UIPageViewController, didFinishAnimating finished: Bool, previousViewControllers: [UIViewController], transitionCompleted completed: Bool) {
self.pageVC.currentPage = pageViewController.viewControllers!.first!.view.tag
if(viewControllers!.first?.view.tag == 4 ) {
if (VCArr.last!.isViewLoaded)
{
print("Last Page")
self.pageVC.pageIndicatorTintColor = UIColor.clear
self.pageVC.currentPageIndicatorTintColor = UIColor.clear
self.pageVC.backgroundColor = UIColor.clear
}
if (VCArr.last!.isViewLoaded) {
if(viewControllers!.first?.view.tag != 4 ) {
self.pageVC.pageIndicatorTintColor = UIColor.lightText
self.pageVC.currentPageIndicatorTintColor = UIColor.white
self.pageVC.backgroundColor = UIColor.white
}