Avoiding UITableView goes under translucent Navigation Bar

self.edgesForExtendedLayout = UIRectEdge.all self.extendedLayoutIncludesOpaqueBars = false //o (con comportamiento algo raro con menos elementos) override func viewDidLayoutSubviews() { if let rect = self.navigationController?.navigationBar.frame { let y = rect.size.height + rect.origin.y self.tableView.contentInset = UIEdgeInsetsMake( y, 0, 0, 0) } }

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.