Search code examples
iosswiftxcodeuikitios14

UIPageControl not visible in iOS 14


I have a UIPageControl that has worked fine in my production app for the last 6 months. However, after updating all my test devices to iOS 14 and updating Xcode to v12, my UIPageControl I have in a tableView cell is no longer visible.

I have changed nothing in my code, this just occurred spontaneously due to the software update. I understand Apple has changed the view hierarchy of UITableView and has also modified page controls. Does anyone have any idea why this page control is positioned correctly yet remains invisible?

Page control is in view hierarchy yet it is not visible


Solution

  • if UIPageControl not visible in iOS 14 then simply add a width constraint and assign relation "greater that or equal" or make increase width of UIPageControl.