Reputation: 1074
This seems to be a very simple UI design requirement that I can't seem to find a way to implement easily in iOS. Basically the UI guys want the dot of the current page indicator to be an elongated dot instead of the regular dot. For example the standard dots of the UIPageControl are 14x14 on a Retina screen, while they want the dot of the current page to be 30x14, and I googled around but can't seem to find an easy way to accomplish this?
I've seen previous answers on how to put some custom UIImageViews into the subviews of the UIPageControl, however they don't seem to be working for the latest iOS versions. Simply changing the width of the dot for the current page indicator just messes up the spacing between the dots. I guess I can create my own custom UIView from the ground up for this feature, but that seems to be a lot of work for such a simple requirement.
So any idea how to make the current page indicator dot of UIPageControl to look differently from the rest of the dots? Thanks.
Upvotes: 0
Views: 641
Reputation: 63
I get it by rewriting UIPageControl.layoutSubviews.
my code: https://github.com/SumiaFish/KVPageContrl
Upvotes: 0