我是iOS新手,所以想要了解内存管理。 我有一个.h文件,其中包含一个属性,我想在某些函数中使用该var。 @property (nonatomic, retain) NSMutableArray *myArray;
然后在我的.m文件中我有一些函数x。 -(void) x
{
// How to allocate memory to the property variable ?
我对iOS开发相对较新,所以请原谅,如果这是一个迟缓的问题。我读过this,但我仍然有点困惑。 我没有使用ARC。 (是的,是的,我知道我应该,但我不知道在这一点上)在我的类的头我有这样的 /*-----------------------------------------------------------------------+
| The name of the sender/rece