CoreDataにあるエントリーがあって titleというatributeで日本語タイトルを保持している。このタイトルの最初の1文字をSection Titleにするために、titleInitialというatributeを作ってTransientにし、その最初の1文字はインプリで対応した。 以下が参考になった。 How to use the first character as a section name – ComAnswer.com @implementation NSManagedObject (…) – (NSString *) titleInitial { [self willAccessValueForKey:@”titleInitial”]; NSString *aString = [[self valueForKey:@”title”] uppercaseString];
