それは何ですか?
これが何をするのかよくわかりません。
- (NSString *)sectionIdentifier {
[self willAccessValueForKey:@"sectionIdentifier"];
NSString *tmp = [self primitiveSectionIdentifier];
[self didAccessValueForKey:@"sectionIdentifier"];
if (!tmp) {
tmp = @"bananas";
[self setPrimitiveSectionIdentifier:tmp];
}
return tmp;
}
なぜこのprimitiveSectionIdentifierが必要なのですか?
最終的には、Appleのドキュメントのサンプルプロジェクトを使用してセクション識別子を作成し、NSFetchedResultsControllerで使用しています。
これは機能しますが。私は自分自身にそれを言っています、
「sectionIdentifier」にアクセスし、「tmp」をprimitiveSectionIdentifierに設定します。しかし、primitiveSectionIdentifierには、現時点では何もありません!! しますか?
次に、「 sectionIdentifier 」にアクセスしたと言います。しかし、それが「意志」と「やった」の間でどのように起こったのかはわかりません!
誰かが私がこれを理解するのを手伝ってもらえますか?