viewController not being removed properly?

后端 未结 2 617
爱一瞬间的悲伤
爱一瞬间的悲伤 2021-01-29 02:52

In my viewController I have an NSFetchedResultsController for populating a tableView. In the viewDidLoad() I\'m saving the current time to

2条回答
  •  广开言路
    2021-01-29 03:20

    What do you mean by "leave the view" Are you going back? If you are, then deinit is not being called.

    Test it by doing the following.

    deinit {
       print("VC Should deinitialize")
    }
    

    If this isn't called when you go back, then you have a retain cycle problem.

提交回复
热议问题