0
votes

I have a tableview and its has 2 sections.Based on numberOfRowsInsection,the sectionheaderview setting in viewForHeaderInSection.And this view is coming from xib.Now my problem is after deleting all rows from any section, the header view still appearing,though passing 0.0f in heightForHeaderInSection,and returning nil value from viewForHeaderInSection.

Thanks

1

1 Answers

0
votes

Just pass 1.0 in heightForHeaderInSection.