viezel / NappDrawer

A side drawer navigation container view controller for Appcelerator Titanium.
MIT License
248 stars 128 forks source link

Crash on iOS 12.5.4 and Ti SDK 10.0.0.GA #231

Open Max87ZA opened 3 years ago

Max87ZA commented 3 years ago

Hi guys, I have a problem with this module since I upgraded to Ti SDK 10. On iOS 12.5.4(tested with iP6) it crashes right after startup. I found logs via xcode: erminating app due to uncaught exception ‘UIViewControllerHierarchyInconsistency’, reason: ‘child view controller:<UINavigationController: 0x103037600> should have parent view controller:<TiViewController: 0x1020911a0> but actual parent is:<TiRootViewController: 0x10282de00>’

Building app with 9.3.2.GA works fine. Tested with newest 2.1.1 version of the module... Please can it be fixed? Thanks

mbender74 commented 3 years ago

https://github.com/mbender74/NappDrawer

I fixed that error!

jquick-axway commented 3 years ago

@mbender74 , I'm hearing that this is still an issue when you put a NavigationWindow within a NappDrawer. It sounds like the NappDrawer code needs to change grab the next view controller up in the hierarchy kind of like how it's handled below. What do you think? https://github.com/appcelerator/titanium_mobile/pull/12930/files

mbender74 commented 3 years ago

works great with NavigationWindow! Sure, you need to use 10.0.1.GA or 10.1.0 (master)..... Using NavigationWindows as centerWindow no problem...

ewanharris commented 3 years ago

@mbender74, I submitted a PR to fix the specific case Josh was referring to https://github.com/mbender74/NappDrawer/pull/1