tejuamirthi / CustomDropDown

Drop Down view for iOS using UIKit
Apache License 2.0
3 stars 6 forks source link

[BUG] Terminating app due to uncaught exception 'NSGenericException' #27

Closed FranklinSamboni closed 4 years ago

FranklinSamboni commented 4 years ago

Describe the bug The framework is generate an app crash when the superview of the custom drop down view is nil.

To Reproduce

Expected behavior

Screenshots

Smartphone (please complete the following information):

Additional context Copy of error: Terminating app due to uncaught exception 'NSGenericException', reason: 'Unable to activate constraint with anchors <NSLayoutYAxisAnchor:0x6000003b3b80 "TtGC14CustomDropDown14CustomDropDownSS:0x7fb7a340f320.top"> and <NSLayoutYAxisAnchor:0x60000038c000 "TtGC14CustomDropDown18CustomDropDownViewSS:0x7fb7a340e1e0.bottom"> because they have no common ancestor. Does the constraint or its anchors reference items in different view hierarchies? That's illegal.'

FranklinSamboni commented 4 years ago

Yes, I would like.

tejuamirthi commented 4 years ago

I have assigned this to you. Complete this early as there's a crash happening

tejuamirthi commented 4 years ago

Will update the repo tomorrow. Would be great if you could do it by morning tomorrow. Thanks @FranklinSamboni It's just a couple of lines of code

FranklinSamboni commented 4 years ago

Of course, but here in Colombia is morning hehe, so I will fixed soon.

tejuamirthi commented 4 years ago

Please share a screen recording of the working app after the fix. It'd really help. Thanks!

FranklinSamboni commented 4 years ago

Example App