jriosdev / iOSDropDown

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

No selection on tap at the dropdown list items. #60

Open ZawarAli6 opened 4 years ago

ZawarAli6 commented 4 years ago

I have country dropdown list and i am tapping on the country is its not selecting anything in the textbox

ovgarcia5138e commented 4 years ago

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

ZawarAli6 commented 4 years ago

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

ovgarcia5138e commented 4 years ago

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

ovgarcia5138e commented 4 years ago

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

ZawarAli6 commented 4 years ago

I am having the same issue, yesterday it was still working fine! what have you tried to fix it?

I didn't find any solution.

I tried updating the pod then cleaning my build but that didn’t work either. I just decided to use a UIPickerview instead with a height of 45 so only one item is displayed at a time to make it look like a drop down menu. For the first item I have scroll for options, so the user knows it’s a scroll menu and not a drop down menu. If interested let me know and I can post the code it works really well!

Yeah sure please share the code.

Pushker7 commented 4 years ago

tap.cancelsTouchesInView = false

this can solve your problem func hideKeyboardWhenTappedAround() { let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard)) tap.cancelsTouchesInView = false view.addGestureRecognizer(tap) }

Pushker7 commented 4 years ago

I have country dropdown list and i am tapping on the country is its not selecting anything in the textbox

tap.cancelsTouchesInView = false

this can solve your problem func hideKeyboardWhenTappedAround() { let tap: UITapGestureRecognizer = UITapGestureRecognizer(target: self, action: #selector(UIViewController.dismissKeyboard)) tap.cancelsTouchesInView = false view.addGestureRecognizer(tap) }