UITableView goes under translucent Navigation Bar

前端 未结 14 1128
一整个雨季
一整个雨季 2020-12-22 23:51

I am trying to have a transparent navigation bar in IOS 7 app. There is a full screen image in my application. I am also having a UITableView over that image. When I use the

14条回答
  •  忘掉有多难
    2020-12-23 00:18

    Only this code solves the problem:

      @IBOutlet weak var tableView: UITableView!
    
      func viewDidLoad() {
          super.viewDidLoad()
          self.tableView.contentInset = UIEdgeInsetsZero
      }
    

提交回复
热议问题