Hassan-Aftab / HADropDown

iOS Control for Drop Down Menu
Other
58 stars 8 forks source link

Last cell only clickable after scrolling drop down #8

Closed arpitjain03 closed 6 years ago

arpitjain03 commented 7 years ago

Please help in resolving this issue

daviddelmonte commented 7 years ago

I have workaround -- add a blank cell to the end of the table

arpitjain03 commented 7 years ago

It will show empty cell then

On Sat, 4 Nov 2017 at 9:50 PM, David DelMonte notifications@github.com wrote:

I have workaround -- add a blank cell to the end of the table

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Hassan-Aftab/HADropDown/issues/8#issuecomment-341909613, or mute the thread https://github.com/notifications/unsubscribe-auth/AdLM6mKefaRr-2iAXmnbigUj5apLysj6ks5szI7fgaJpZM4QPO29 .

Sahilberi commented 6 years ago

@arpitjain03 @daviddelmonte you can resolve this problem by implementing heightForFooterInSection method. actually, it is taking default height of footer so when we press on the last cell we are actually pressing on the footer. so give height 0 to the footer.

func tableView(_ tableView: UITableView, heightForFooterInSection section: Int) -> CGFloat { return 0.0 }

arpitjain03 commented 6 years ago

Thanks @Sahilberi It worked for me

daviddelmonte commented 6 years ago

Brilliant. Thanks!