I don't know how to remove this black line.
Asked
Active
Viewed 131 times
0

koen
- 5,383
- 7
- 50
- 89
-
You use a NavigationController, but don't want to show it (well, the NavigationBar)? – Larme Nov 18 '20 at 18:46
-
Yeah I don’t want to show it only for this view – Apiphoom Chuenchompoo Nov 18 '20 at 19:04
-
https://stackoverflow.com/a/56955774/1801544 ? https://stackoverflow.com/questions/19226965/how-to-hide-uinavigationbar-1px-bottom-line/19227158#19227158 ? – Larme Nov 18 '20 at 19:11
1 Answers
0
Try this in the Controller Code:
override func viewDidLoad() {
self.navigationController?.navigationBar.clipsToBounds = true
}

Chris
- 47
- 2