Large title UINavigationbar bottom line flickers o

2020-07-06 03:54发布

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?

?

标签: ios swift
6条回答
神经病院院长
2楼-- · 2020-07-06 04:31
  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)
查看更多
仙女界的扛把子
3楼-- · 2020-07-06 04:37

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.

查看更多
看我几分像从前
4楼-- · 2020-07-06 04:38

If you are using storyboard and have a embedded UINavigationController then just un-check Translucent property from attribute inspector.enter image description here

self.navigationController?.navigationBar.isTranslucent = false
查看更多
淡お忘
5楼-- · 2020-07-06 04:38

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.

查看更多
再贱就再见
6楼-- · 2020-07-06 04:38

removing navigationBar.barTintColor custom color, fix in my app (pay attention, do not set barTintColor to .clear, don't custom tintColor)

查看更多
姐就是有狂的资本
7楼-- · 2020-07-06 04:44

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

查看更多
登录 后发表回答