ENSwiftSideMenu icon indicating copy to clipboard operation
ENSwiftSideMenu copied to clipboard

Gap between cells and navbar when in portrait mode

Open Horray opened this issue 10 years ago • 0 comments

You can just use the sample project it provided, because it has the same problem, and when I rotate the iPhone to portrait mode, the menu tableView has a gap between the nav bar and the cells.

I found the problem. It's at the following file: MyMenuTableViewController.swift

tableView.contentInset = UIEdgeInsetsMake(64.0, 0, 0, 0) I tried commenting that out, and inserting the following line instead:

self.automaticallyAdjustsScrollViewInsets = true But it doesn't fix the problem. How can I remove the gap in portrait mode?

Horray avatar Sep 10 '15 03:09 Horray