Reduce dot size or padding to fit all page indicators on screen with UIPageControl

前端 未结 3 1316
醉话见心
醉话见心 2021-02-05 13:23

I have a UIPageControl that has 22 pages, therefore 22 page indicator dots. In landscape on iPhone they\'re all visible with plenty of space on the left and right,

3条回答
  •  悲哀的现实
    2021-02-05 13:59

    Swift 3 version code: based on pbasdf answer.

    pageControl.transform = CGAffineTransform(scaleX: 0.7, y: 0.7)
    

提交回复
热议问题