will the retained/strong class member variables got automatically clean'd up on unloading a view controller?

后端 未结 4 774
无人共我
无人共我 2021-01-25 17:00

I have the following property

.h

@property (nonatomic, strong) NSMutableDictionary *cache;

.m

@synthesize cache = _cach         


        
4条回答
  •  再見小時候
    2021-01-25 17:36

    Regardless of whether you are using ARC or not, they will not be cleaned up in -viewDidUnload. You have to explicitly release them (or set them to nil under ARC.)

提交回复
热议问题