删除Tableview和Refresh Control iOS 14之间的空白

问题描述

我有一个带有刷新控件的表视图,该控件具有自定义的背景色,但是当我实际拉动刷新时,可以看到当表视图垂直跳动时,两者之间会出现一条浅灰色的线。

enter image description here

在14之前的任何iOS版本中这都不是问题。

我尝试过但不起作用的内容

var frame = tableView.bounds
frame.origin.y = -frame.size.height
refreshBackgroundView.frame = frame
refreshBackgroundView.backgroundColor = .blue
tableView.addSubview(refreshBackgroundView)
        
let refresh = UIRefreshControl()
refresh.addTarget(self,action: #selector(pulledToRefresh),for: .valueChanged)
refresh.tintColor = .white
refresh.backgroundColor = .blue

tableView.refreshControl = refresh
tableView.addSubview(refresh)

有什么想法我还能尝试吗?

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)