qmathe / DropDownMenuKit

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

Table view not filled #9

Closed grifas closed 7 years ago

grifas commented 7 years ago

Hi, I fetch my data asynchronously and I fill the menuCells once I have it. My issue is the table view is not filled or may be is not displayed.

Have you a solution ?

qmathe commented 7 years ago

After updating your cells in response to your asynchronous call, did you try calling DropDownMenu.menuView.reloadData() or similar reload methods?

grifas commented 7 years ago

I'm using Firebase and in the viewDidLoad I'm fetching data asynchronously and yes after I have it I tried to reload the tableView. The numberOfRow returns the right number but it never passes in cellForRow. I think the height of content is 0.

qmathe commented 7 years ago

I committed a fix for your issue. Let me know if it is working for you now.

grifas commented 7 years ago

It seems to be fixed :)

qmathe commented 7 years ago

Thanks for reporting the bug :)