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

loon3y

macrumors 65816
Original poster
Oct 21, 2011
1,235
126
We developed an app, that has a pull to refresh feature and when iOS7 rolled it started to crash.

We're using collection views, basically there is an empty view, and you take pictures and upload it. the pull to refresh works, but it crashes when you take a picture, upload it, than crashes when you pull to refresh


and i cant figure out a solution, any advice?

heres the code:

29xx2jd.png


2ppg3z7.png
 
Two notes

We need to know the error you are getting

We might need to see the method definition for parsingLoadingMore

You don't need the "==YES" in the if statement. You can just have
Code:
if (view_Loading.hidden){
     //stuff
}
 
Two notes

We need to know the error you are getting

We might need to see the method definition for parsingLoadingMore

You don't need the "==YES" in the if statement. You can just have
Code:
if (view_Loading.hidden){
     //stuff
}



2qkruy0.png



here is my error, im guessing it has to do something with the collections view?
 
The SIGABRT message says that you attempted to delete a row that didn't exist. That was row 0 in section 0.

Is it possible that your boardArray isn't in sync with the collection view?

I'm confused why 'pull to refresh' would end up calling removeAllData.
 
The SIGABRT message says that you attempted to delete a row that didn't exist. That was row 0 in section 0.

Is it possible that your boardArray isn't in sync with the collection view?

I'm confused why 'pull to refresh' would end up calling removeAllData.

yeah thanks, that was the problem.


i myself didnt work on the refreshing function. i think we had to clear it because of a memory issue/crash. we have a paging function that we call from our webservice, because our app shows images in a collectionview, and when they scroll down it calls the paging function from the webservice.

it seemed like a ticky tacky solution, but we had a deadline to meet.


im sure there is better way, just havent figured it out yet.
 
The main thing is to be able to understand and debug SIGABRT errors. You'll see this runtime exception again and again.
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.