View controller getting duplicate instantiation

后端 未结 2 1599
迷失自我
迷失自我 2021-01-21 14:54

This should be pretty straight forward.

When I use the navigation controller to segue from my root view to my 2nd view, the 2nd view loads fine. The 2nd view creates a t

2条回答
  •  甜味超标
    2021-01-21 15:17

    Off the top of my head: In your second view controllers deallocate method, you should stop the timer of the "updateData", as it is not properly deallocated. Try that!

    [self.timer invalidate];
    

提交回复
热议问题