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

`selectedIndex` does not Fill the box #27

Closed iambenmitchell closed 5 years ago

iambenmitchell commented 5 years ago

selectedIndex selects the right option, but it does not fill Option 1 into the text box.

ghost commented 5 years ago

How did you solve this?

masgarifor2 commented 5 years ago

Hi, you can fill textBox with text property and after that set selectedIndex

self.myDropDown.text =  "Test Itam"

self.myDropDown.selectedIndex = 0
jriosdev commented 5 years ago

@masgarifor2 Thanks for the replay