Tableview Reload headache

Discussion in 'iOS Programming' started by VolceOntra, May 8, 2014.

  1. VolceOntra macrumors 6502

    VolceOntra

    Joined:
    Apr 25, 2007
    #1
    So I have a pretty basic tableviewcontroller with a prototype cell containing a text label.

    I'm accessing the label via tag so it shouldn't be an allocation issue, but I might be wrong.

    Cell for row seems to be firing when I called [self.tableview reloaddata] and the table data actually DOES reload.

    The only time it stops reloading is when I navigate my navigation view controller and go to a different tableview section (or even go back to the same section)...

    ...which that has me at a loss.

    I did a NSLog on the tableview, and it's the same tableview....so I'm confused....

    Any help would be great...
     
  2. VolceOntra thread starter macrumors 6502

    VolceOntra

    Joined:
    Apr 25, 2007
    #2
    I should also add that when the cell is dequeued by scrolling, the data does update....
     
  3. dejo Moderator

    dejo

    Staff Member

    Joined:
    Sep 2, 2004
    Location:
    The Centennial State
    #3
    You should provide us with some code or we are just shooting in the dark here.
     
  4. MattInOz macrumors 68030

    MattInOz

    Joined:
    Jan 19, 2006
    Location:
    Sydney
    #4
    Not sure I understand. if you Navigate away from the tableview then it should stop updating as it's not visible.

    Do you mean it's not updating after it becomes visible again?
     
  5. VolceOntra thread starter macrumors 6502

    VolceOntra

    Joined:
    Apr 25, 2007
    #5
    Yes, after it becomes visible again, the table shows the correct data, but when reloaddata is attempted it doesn't update the data...
     
  6. Ernie11 macrumors member

    Joined:
    Apr 4, 2014
    #6
    Im priti new myself but wouldnt
    Code:
    - (void)viewWillAppear:(BOOL)animated
    instead of
    Code:
     - (void)viewDidLoad
    fix this sort of problem?
     
  7. VolceOntra thread starter macrumors 6502

    VolceOntra

    Joined:
    Apr 25, 2007
    #7
    This problem is fixd.

    It was a delegate issue

    Thank you all
     

Share This Page