Skip to content

Segues from ColorMatchTabsViewController produces Exception #47

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

Closed
Juice805 opened this issue Mar 13, 2017 · 2 comments
Closed

Segues from ColorMatchTabsViewController produces Exception #47

Juice805 opened this issue Mar 13, 2017 · 2 comments

Comments

@Juice805
Copy link

Report a bug

What did you do?

called self.performSegue(withIdentifier: "addItem", sender: self) in the protocol method func popoverViewController(_ popoverViewController: PopoverViewController, didSelectItemAt index: Int) PopoverViewControllerDelegate function.

Or initiating a segue by tapping a button on the navigation bar of a ColorMatchTabsViewController

What did you expect to happen?

Segue to another view controller

What happened instead?

Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '*** -[__NSArrayM insertObject:atIndex:]: object cannot be nil'`

Your Environment

  • Version of the component: 2.0.1
  • Swift version: 3
  • iOS version: 10
  • Device: All
  • Xcode version: 8.2.1

Project that demonstrates the bug

Sample project reproduces the bug by adding either a button to the nav bar with a segue, or initiating one

@rnkyr rnkyr added the type: bug label Apr 7, 2017
@rafaelnicolett
Copy link

Same problem here.

@minseks
Copy link
Contributor

minseks commented Oct 21, 2017

Same problem too.
I spend a few hours to locate this bug.
It was caused by the overrided method
open override func loadView() { view = MenuView() } in ColorMatchTabsViewController.

You should add super.loadView() before add your own code like this:
open override func loadView() { super.loadView() view = MenuView() }
After that, everything is ok!

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

No branches or pull requests

4 participants