Pull To Refresh Crashing In iOS7

Discussion in 'iOS Programming' started by loon3y, Oct 11, 2013.

  1. loon3y macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #1
    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:

    [​IMG]

    [​IMG]
     
  2. Sonnestah macrumors regular

    Joined:
    Mar 2, 2013
  3. waterskier2007 macrumors 68000

    waterskier2007

    Joined:
    Jun 19, 2007
    Location:
    White Lake, MI
    #3
    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
    }
    
     
  4. loon3y thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #4


    [​IMG]


    here is my error, im guessing it has to do something with the collections view?
     
  5. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #5
    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.
     
  6. loon3y thread starter macrumors 65816

    loon3y

    Joined:
    Oct 21, 2011
    #6
    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.
     
  7. PhoneyDeveloper macrumors 68030

    PhoneyDeveloper

    Joined:
    Sep 2, 2008
    #7
    The main thing is to be able to understand and debug SIGABRT errors. You'll see this runtime exception again and again.
     

Share This Page