Valor máximo para atributo em Core Data
+ (int32_t)maximumPositionInContext:(NSManagedObjectContext *)context { // sample using attribute named “position” on entity “Item” NSFetchRequest *request = [NSFetchRequest new]; request.entity = [NSEntityDescription entityForName:@”Item” inManagedObjectContext:context]; request.resultType = NSDictionaryResultType; // technically not necessary …
Continuar lendo