Reputation: 14722
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?
Upvotes: 10
Views: 1647
Reputation: 491
removing navigationBar.barTintColor custom color, fix in my app (pay attention, do not set barTintColor to .clear, don't custom tintColor)
Upvotes: 1
Reputation: 702
If you are using storyboard and have a embedded UINavigationController then just un-check Translucent property from attribute inspector.
self.navigationController?.navigationBar.isTranslucent = false
Upvotes: 2
Reputation: 402
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.
Upvotes: 2
Reputation: 388
Try Insert "self.view.layoutSubviews()" in your tableView code.
Upvotes: -1
Reputation: 160
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.
Upvotes: 1
Reputation: 1096
UITableView
's content (cells, header) are clipped to bounds.Upvotes: 1