Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design of menu UITVC in storyboard? #19

Closed
matphillips opened this issue Oct 20, 2014 · 1 comment
Closed

Design of menu UITVC in storyboard? #19

matphillips opened this issue Oct 20, 2014 · 1 comment

Comments

@matphillips
Copy link

The example shows a UITableViewController being created in cade and passed to the ENSideMenu. I've tried to design this in storyboard with a custom cell class.
The table loads fine on it's own (make it first view controller as test) but when the SideMenuNavigationController is first VC, the app crashes with: "unable to dequeue a cell with identifier Cell....."

Am I missing something trivial or is a code-generated table the only way to use this?

@matphillips
Copy link
Author

Worked it out, initialise with:
sideMenu = ENSideMenu(sourceView: self.view, menuTableViewController: mainStoryboard.instantiateViewControllerWithIdentifier("Menu") as UITableViewController, menuPosition:.Left)

rather than:
sideMenu = ENSideMenu(sourceView: self.view, menuTableViewController: MyMenuTableViewController(), menuPosition:.Left)
and give the VC the relevant identifier in the storyboard.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant