You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
The text was updated successfully, but these errors were encountered:
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?
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 inspectingindexPath
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 doesThe text was updated successfully, but these errors were encountered: