Created table view in which first cell contains an Image I want this image to overlap with status bar like shown in image below. How to create NavigationBar accordingly?
Tried following line of code didn't worked for me.
tableView.contentInset = UIEdgeInsets(top: -UIApplication.shared.statusBarFrame.size.height, left: 0, bottom: 0, right: 0)
Also played around with safe area and super view but no luck with that
Update:
Added top space to superview -90 constraint to tableview now Image is visible in status bar wanted to know is that right way to do or is there any other way
Found that there is empty black space at top due to navigation controller and navigation bar it is not working until I set top space to super view as -90 following is image
from IOS TableView first cell Image should start from status bar



No comments:
Post a Comment