jjzjj

ios - 在 UIPageControl 中为点添加边框

我想为UIPageControl中的点添加边框颜色。这是它的小图片:我可以通过从XCode配置它来放置第二个点,但我不能使第一个和第三个圆圈的内部为空。有没有一种简单的方法可以实现这一点?谢谢:) 最佳答案 已编辑-Swift3和4扩展以获得相同的结果-extensionUIPageControl{funccustomPageControl(dotFillColor:UIColor,dotBorderColor:UIColor,dotBorderWidth:CGFloat){for(pageIndex,dotView)inself.

ios - 在 UIPageControl 中为点添加边框

我想为UIPageControl中的点添加边框颜色。这是它的小图片:我可以通过从XCode配置它来放置第二个点,但我不能使第一个和第三个圆圈的内部为空。有没有一种简单的方法可以实现这一点?谢谢:) 最佳答案 已编辑-Swift3和4扩展以获得相同的结果-extensionUIPageControl{funccustomPageControl(dotFillColor:UIColor,dotBorderColor:UIColor,dotBorderWidth:CGFloat){for(pageIndex,dotView)inself.