Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

-removeAllSections leaves the tableview in a bad state #4

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

-removeAllSections leaves the tableview in a bad state #4

jbrennan opened this issue Apr 4, 2013 · 1 comment

Comments

@jbrennan
Copy link

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
Copy link
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
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants