How do I implement UIPageControl in Swift

后端 未结 4 1564
春和景丽
春和景丽 2021-02-02 10:30

Ok so I\'m struggling here and haven\'t been able to find a working solution. I\'ve been self learning Swift without Objective C experience (I know, I know).

In my app,

4条回答
  •  情歌与酒
    2021-02-02 10:51

    UIPageControl Integration using Swift 4

    func configurePageControl() {
        self.pageview.numberOfPages = items.count
        self.pageview.currentPage = 0
        self.pageview.tintColor = UIColor.red
        self.pageview.pageIndicatorTintColor = UIColor.black
        self.pageview.currentPageIndicatorTintColor = UIColor.green
    }
    

提交回复
热议问题