在这段代码中,如果collection在调用 的类中释放init...,会发生self.title什么self.managedObjectContext?难道我们不需要调用.itemName而currentCollection不是调用collection自身吗?
- (id)initWithCollection:(AACollection *)collection {
if( (self = [super initWithNibName:@"AACollectionViewController"
bundle:nil]) ) {
currentCollection = [collection retain];
self.title = collection.itemName;
self.managedObjectContext = collection.managedObjectContext;
}
谢谢