ENSwiftSideMenu
ENSwiftSideMenu copied to clipboard
Gap between cells and navbar when in portrait mode
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?