Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

erdinc27

macrumors regular
Original poster
Jul 20, 2011
168
1
I want to insert a view in tableview's section header even if the section is empty. Can it be done ? I mean if the section is empty there will be only the section header.
 
You're gonna have to do a workaround for that I'm pretty sure. Someone correct me if I'm wrong, but normally, the table view will not show a section header for an empty section. What I would do is just return 1 for the number of table view cells in that section, and then in your cellforrowatindexpath method, make a custom cell with a height of 0. Crappy workaround I know.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.