UINavigationbar lower-level title bar flickers on scroll

I have a view controller with a table view. Pulling down the table, the navigation bar expands as expected, but the line of lower hair flickers. Has anyone encountered this problem before?

?

+5
source share
4 answers
  • Make sure your UITableView content (cells, title) is bound to borders.
  • The problem may be with shadows if you use them. (I can not say for sure)
+1
source

Find the source of the dark gray color and change it to UIColor.clear

I would guess that this is the background color of the upper UIView, and since it expands and reduces its size, there is a 0.5px delay every few pixels.

It's hard to say without seeing your code.

+1
source

Try typing "self.view.layoutSubviews ()" into your table code.

+1
source

The simplest solution would be to simply set self.tableView.separatorColor = UIColor.clear and add a label (identical to the seprator row) inside the cell or table header.

+1
source

Source: https://habr.com/ru/post/1276030/


All Articles