`-removeAllSections` leaves the tableview in a bad state #4

Open
jbrennan opened this Issue Apr 4, 2013 · 1 comment

Projects

None yet

2 participants

@jbrennan
jbrennan commented Apr 4, 2013

Calling -removeAllSections doesn't seem to actually remove the sections from the tableview itself, and so adding sections or touching the tableview causes the app to crash from a really nasty exception.

My current work around is to call [self.tableview reloadData] immediately after removing all sections. I'm not sure if this is the best possible solution but it seems to work for me.

@jakemarsh
Owner

Good catch, that method name could be much better. This is how I work with it in my JMStaticContentTableViewController subclasses. But it probably should call reloadData internally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment