It appears from the GIF as if all three pages are present in your UIPageControl, but only the first two corresponding dots are actually being displayed.
To fix it, just add this:
pageControl.sizeToFit()
inside your view controller's viewDidLoad
.
This will cause the page control to expand to display as many dots as pages exist.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.