I am trying to change the height of UIPageControl
how I can achieve that?
This is how you do that
Change the width to something strange, 153
Now open the xib as source.
Find 153
Nearby you should see number 36. Change that to the height you want.
Tada...... :)
Agree With Mike
You can change your UIPageControl height using its frame..
ex
pgControl.frame = CGRectMake(X , Y , Width , Height that you want);
Not using interface builder, but you can specify a new frame in code:
pageControl.frame = CGRectMake(x, y, width, height);
Drag UIView in your XIB, then change Its class to UIPageControl
I had the same issue, but wanted to solve it in storyboard. Just drop a new View to your windows main view. Then drag the UIPageControl item to the new View. Now you can adjust the height of the new view as desired. The contained UIPageControl is clipped accordingly. Most properly you have to adjust the position of the UIPageControl inside the new view to get a proper display. Don't forget to set "Clip Subviews" for the new view.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With