qmathe / DropDownMenuKit

UIKit drop down menu, simple yet flexible and written in Swift
Other
302 stars 38 forks source link

Drop Down Menu does not work in a popup #17

Closed ha-hamed closed 5 years ago

ha-hamed commented 7 years ago

I have a issue when using the drop down menu in pop up and choosing a cell: I get the following error:

screen shot 2017-08-24 at 4 10 31 pm

Could you please provide a solution for it? Thank you in advance

qmathe commented 7 years ago

Thanks for reporting the issue, I'm going to take a look at it.

ha-hamed commented 7 years ago

@qmathe Thank you, it will be deeply appreciated.

qmathe commented 7 years ago

Did you assign the view of the popup controller to DropDownMenu.containerbefore presenting it ?

If you did this and DropDownMenu.container was reverted to nil while getting presented, I'll need some code to better understand how you are setting up the menu, in order to reproduce the issue.

If you can provide a test project or modify DropDownMenuExample to reproduce the issue, that's even better.

ha-hamed commented 7 years ago

@qmathe I just adjusted my code to the usage of the release 0.8.4, however, still I am having trouble with creating a dropdown in the pop up controller view. Could you please put a sample/example code? I have displayedDropDownMenu.container and assigned it to the popup controller and still the drop down menu is not displaying/functioning in a pop up view controller. Any help to would be appreciated greatly.

qmathe commented 6 years ago

@hakuj I have some time to investigate this issue again. Any update on your side. Did you find a solution?

By pop up controller, do you mean a popover controller?

I'll try to create a small example based on the screenshot you gave me. If you have a test project that shows what you were trying to achieve that would still be helpful.

qmathe commented 5 years ago

If this problem still happens, please let me know. I'm closing it for now.