Custom UIPageControl view, replacing dots with “Page X of Y”

前端 未结 6 437
名媛妹妹
名媛妹妹 2021-01-30 09:33

I\'m trying to find a way to replace the dots of a UIPageControl with a caption that reads \"Page X of Y\" since I\'ll likely have >50 items. I\'m just becoming familiar with Co

6条回答
  •  醉酒成梦
    2021-01-30 10:18

    Although you can subclass UIPageControl, I don't think it will add anything. I suggest you subClass UIControll and base you API on UIPAgeControl's API. I think the UIs would be identical.

    You could add properties to control the text but it's probably not needed.

提交回复
热议问题