これが私のコードです:
- (void)showRectangles
{
NSMutableArray *rects = [[NSMutableArray alloc]init];
//....rest of code here
[rects release];
}
ここでの問題は、コードを分析すると、次の警告が表示されることです。
Incorrect decrement of the reference count of an object that is not owned at this point by the caller
なぜこれが私に警告を与えるのか分かりません。誰かが理由を説明できますか?