jriosdev / iOSDropDown

Drop Down Menu for iOS With Search And Other Awesome Customisation
https://cocoapods.org/pods/iOSDropDown
MIT License
659 stars 150 forks source link

On click DropDown, The app stops working #136

Open Saurabh-Singh-Lodhi opened 3 months ago

Saurabh-Singh-Lodhi commented 3 months ago

Until I click on this drop everything is working fine in the app, The moment i click on this DropDown, no drop will appear even the app stopped working, in the console there is no error even my app is not crashing it just stopped working (Clicks, events, Navigations)

Here is the code:

import iOSDropDown

@IBOutlet weak var txt_child: DropDown!

override func viewDidLoad() {
    super.viewDidLoad()

        txt_child.inputView = UIView()   //So that I will not show keyboard on click
        txt_child.optionArray = childNameArray //Child Array is an array of string

        txt_Child.didSelect { selectedText, index, id in
            print(selectedText)
        }

    }