Objective C alloc/release error

后端 未结 4 1849
庸人自扰
庸人自扰 2020-12-07 06:19

I have the following problem:

in header;

GDataXMLDocument *doc;
NSString *xmlBody;
@property (nonatomic,copy) NSString *xmlBody;
@property (nonatomic         


        
4条回答
  •  無奈伤痛
    2020-12-07 06:56

    One "problem" with singleton objects is that they appear to leak. If you create an object and never destroy it, Instruments says it's a leak, even if your intention was never to release it.

提交回复
热议问题