Monday, April 2, 2018

Large title UINavigationbar bottom line flickers on scroll

Leave a Comment

I have a view controller with a tableview in it. Pulling down on the tableview expands the navigationbar as expected but the bottom hair line flickers. Has anyone faced this problem before?

?

4 Answers

Answers 1

  1. Please check that your UITableView's content (cells, header) are clipped to bounds.
  2. The issue may be with shadows, if you use them. (Can not tell for sure)

Answers 2

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

I would guess it's the background color of the top UIView and as it expands and contracts its size, there's a 0.5px delay every few pixels.

It's hard to tell without seeing your code.

Answers 3

Try Insert "self.view.layoutSubviews()" in your tableView code.

Answers 4

The easiest possible solution will be simply set self.tableView.separatorColor = UIColor.clear & add a label(identical to seprator line)inside your tableview cell or header.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment