I have a navigation bar which is transparent and a tableView in my view.
What I want to do is to fill the all part of navigation and status bar with my first cell and remove the top margin.
But now it looks like this.
Thank you.
I have a navigation bar which is transparent and a tableView in my view.
What I want to do is to fill the all part of navigation and status bar with my first cell and remove the top margin.
But now it looks like this.
Thank you.
let yOffset = UIApplication.shared.statusBarFrame.height + self.navigationController!.navigationBar.frame.size.height
tableView.contentInset = UIEdgeInsets(top: -yOffset, left: 0, bottom: 0, right: 0)
This solved my problem. Thank you everyone!