以下のコードはXcode3.2で使用し、非常にうまく機能しました
@interface MoObject : UIViewController
{
NSMutableArray *categoryArray;
}
@property (nonatomic, retain) NSMutableArray *categoryArray;
@end;
@implementation MyObject
@synthesize categoryArray;
- (void)viewDidLoad
{
[super viewDidLoad];
NSMutableArray *a = [[NSMutableArray alloc] init];
categoryArray = a;
[a release]; //AAA:I can not release this, it does not report compiling error , but after some operation, it will cause exec bad error
}
- (void)dealloc {
[category release];
[super dealloc];
}
Xcode 4.3.1iOS5.1に移行します
同じ関数が非常に多くのexecbadエラーを引き起こします。
プロジェクト全体のARCを閉じても。
問題はまだ存在します。ポイントAAAでオブジェクト配列を解放できないようです。
コメントを歓迎します