Swift/iOS8: Why are Page Control indicators not showing?

后端 未结 6 2418
暗喜
暗喜 2021-02-19 08:54

I am implementing a straightforward gallery view controller where the app displays a small range of full-screen images that the user can scroll through. I\'m using UIPageViewCon

6条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-19 09:09

    Why not use swift 3+ version of Zell B.'s answer

        func presentationCount(for pageViewController: UIPageViewController) -> Int {
            return self.providerItemList?.providerItems?.count ?? 0
        }
    
        func presentationIndex(for pageViewController: UIPageViewController) -> Int {
            return 0
        }
    

提交回复
热议问题