내 @interface
theres a NSArray *Monate
다음 :Objective-C : 자동 생성 된 초기화와 생성자에서의 유지가 잘못 되었습니까?
내가 할 경우 :
filePath = [[NSBundle mainBundle] pathForResource:@"SomeFile" ofType:@"plist"];
self.Monate = [NSArray arrayWithContentsOfFile:filePath];
생성자에서 autoreleased 개체에 맞습니까? 그럼 나중에 [Monate retain]
해야합니까?
다른 하나의 메모 : ivars의 이름을 대문자로 사용하지 마십시오. Obj-C 규약은 대문자로 된 이름이 클래스를위한 것입니다. – NSResponder