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

After pushing a Controller of type ColorMatchTabs inside a Navigation Controller, pushing a new Controller crashes the app #17

Open
nitrodamsel opened this issue Aug 25, 2016 · 3 comments

Comments

@nitrodamsel
Copy link

nitrodamsel commented Aug 25, 2016

A Navigation Controller (A) will contain 2 instance of ColorMatchTabs Controller. Each ColorMatchTabs Controller has a unique Navigation Controller (B and C)

On first pushViewController of B to A, the result is fine. On the second however (C to A), it's crashing and giving an error of

* Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[__NSArrayM insertObject:atIndex:]: object cannot be nil'
*** First throw call stack:
(0x18338adb0 0x1829eff80 0x18326e708 0x1886d611c 0x188690f30 0x188691130 0x188690f30 0x188690f30 0x188691130 0x188690f30 0x188690f30 0x188691130 0x188880b44 0x1885a00d8 0x18859fb1c 0x18859fa84 0x1884dc1e4 0x185e6e98c 0x185e695c8 0x185e69488 0x185e68ab8 0x185e68818 0x1884deff4 0x18334109c 0x183340b30 0x18333e830 0x183268c50 0x184b50088 0x18854a088 0x1000d9414 0x182e068b8)
libc++abi.dylib: terminating with uncaught exception of type NSException

I'll update this thread if I found something useful.

Thank you for this great component!

EDIT: I changed the title from 'More than one instance of ColorMatchTabs produces an error' after I made conclusive tests.

@nitrodamsel nitrodamsel changed the title More than one instance of ColorMatchTabs produces an error After pushing a Controller of type ColorMatchTabs inside a Navigation Controller, pushing a new Controller crashes the app Aug 25, 2016
@nitrodamsel
Copy link
Author

My temporary solution is on Navigation Controller A, methods pushViewController and popToViewController need animated attribute set as false to make everything work.

@ZdorAnna ZdorAnna self-assigned this Oct 11, 2016
@mukulm24
Copy link

I cannot push a new view controller on any of the StubsViewController. How did you do that?

@minseks
Copy link
Contributor

minseks commented Oct 21, 2017

Please see #47.

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

6 participants