UIPageControl在iOS 14中不可见 [英] UIPageControl not visible in iOS 14

查看:72
本文介绍了UIPageControl在iOS 14中不可见的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个UIPageControl,在过去的6个月中,我的生产应用程序都运行良好.但是,在将所有测试设备更新到iOS 14并将Xcode更新到v12之后,在tableView单元格中拥有的UIPageControl不再可见.

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.

我没有更改我的代码,这只是由于软件更新而自发发生的.我了解Apple已更改了UITableView的视图层次结构,并且还修改了页面控件.有谁知道为什么此页面控件正确放置却仍然不可见?

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?

推荐答案

如果UIPageControl在iOS 14中不可见,则只需添加宽度约束并分配关系大于或等于"即可.或增加UIPageControl的宽度.

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.

这篇关于UIPageControl在iOS 14中不可见的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆