-3

I have added side menu using this iOS Library by code implementation. Below code written in view did load func:

let menuRightNavigationController = UISideMenuNavigationController(rootViewController: SideMenuViewController())

SideMenuManager.default.menuRightNavigationController = menuRightNavigationController
SideMenuManager.default.menuFadeStatusBar = false

And below one written in button action:

present(SideMenuManager.default.menuRightNavigationController!, animated: true, completion: nil)

Result screenshot attached below:

Click here for screenshot

Dávid Pásztor
  • 51,403
  • 9
  • 85
  • 116
Huzaifa ameen
  • 143
  • 1
  • 8
  • Hi I'm using the same library for my current project, how are you defining the view for `SideMenuViewController()` ? is it via .storyboard, or is it via .xib? – Aju Antony Jun 18 '18 at 13:15
  • Thanks @CoderFrom94 for replying I was using ViewController in RootViewController instead of TableViewController, its working fine now. – Huzaifa ameen Jun 18 '18 at 20:50

1 Answers1

0

If you added the TableViewController which is inside RootViewController of SideMenu with code, you can give tableView.backgroundColor = .white at viewDidLoad function. Probably you are initializing SideMenu without any configuration.

Default TableViewController shows black background.

onurgenes
  • 127
  • 4
  • 18