Moving Views

Discussion in 'iOS Programming' started by R.R.Mac, Jul 7, 2011.

  1. R.R.Mac macrumors regular

    R.R.Mac

    Joined:
    Sep 16, 2006
    Location:
    Guildford, England
    #1
    Hi!

    I'm making an app and i'm encountering a problem. I have a UITableViewController which is working very well. I've added things into the table and they work fine, i can click on them etc.

    In one of my cells in the table, when i click in I go to a new nib file with a new class. In it I have a Timer which continually refreshes a label. However, when i go back to the table, it still refreshes it. I wish to stop it from refreshing it, i.e. invalidate the timer when i leave the view. How would I do this?

    Thanks.
     
  2. robbieduncan Moderator emeritus

    robbieduncan

    Joined:
    Jul 24, 2002
    Location:
    London
    #2
    Normally you'd use the appropriate method in the UIViewController than is controlling the view that will disappear.
     
  3. R.R.Mac thread starter macrumors regular

    R.R.Mac

    Joined:
    Sep 16, 2006
    Location:
    Guildford, England
    #3
    Thank you so, so much. I was being very stupid. I was putting stuff in them but only in the table so I was getting all sorts of errors. Thanks :D :D
     

Share This Page