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

前端 未结 3 1314
醉话见心
醉话见心 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 14:09

    You should really not use a UIPageControl for something that has 22 pages. How about trying something like a label that returns a number instead. Will make you app look a lot cleaner.

    Although if you REALLY want to use the pageControl, pbasdf's answer is spot on. pageControl.transform = CGAffineTransformMakeScale(0.8, 0.8) should do the trick.

提交回复
热议问题