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

2.0 - UITableView causes crash when refresh begins #78

Open
chrismanahan opened this issue Aug 12, 2015 · 1 comment
Open

2.0 - UITableView causes crash when refresh begins #78

chrismanahan opened this issue Aug 12, 2015 · 1 comment

Comments

@chrismanahan
Copy link

When pulling down a table view to refresh, I crash in tableView:cellForRowAtIndexPath when I access my datasource.

As a workaround, I added a try catch block around where I use [indexPath row] to access my datasource.

In this specific crash, I have 2 sections and 2 datasources. The crash happens when indexPath has a section of 1 (2nd section). When inspecting indexPath in the debugger, it shows that [indexPath row] is <nil>. This is when the control is stretched far enough to begin refreshing, but crashes before it does

@Sephiroth87
Copy link
Owner

The control doesn't call tableView:cellForRowAtIndexPath:, so it should be something else...
Are you sure you're not doing anything strange when you receive the valueChanged notification?

Do you have a sample project you can send me?

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