Do I need use dealloc method with ARC?

后端 未结 5 1711
别跟我提以往
别跟我提以往 2021-02-01 14:03

So, I have class:

@interface Controller : NSObject
{
    UILabel* fileDescription;
}

@property(strong, nonatomic) UILabel* fileDescription;

D

5条回答
  •  别那么骄傲
    2021-02-01 14:47

    As you are using ARC you don't have to use dealloc Complier will set the autoreleasePool depending upon the scope of the property,variable or control. And it'll will release the memory. There are different types of autoreleasepool generally we can define them as function level,class level etc etc. Hope this helps.

提交回复
热议问题