UIViewController -dealloc method not called

后端 未结 4 1431
半阙折子戏
半阙折子戏 2021-01-03 02:43

I am working with Automatic Reference Counting. I have a custom UIViewController subclass and whenever I call -presentViewController: animated:completion

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-03 03:12

    dealloc method isn't called when the class is retained (or something in this class is retained) and not reeleased. It is justly for projects with both ARC and without it. So check your code twice.

提交回复
热议问题