I want to have a "dynamic setup" of my SCClassDefinition and I have problem refreshing the display.
I explain a bit more :
I have a "settings" view where the user can switch on/off the display of some fields for edition (displayHeart for instance).
So I created the array of propertyNames as follow
NSMutableArray *fields=[NSMutableArray array];
[fields addObject:@"date"];
[fields addObject:@"value"];
if (displayHeart) [fields addObject:@"heart"];
[fields addObject:@"notes"];
SCClassDefinition *measureClassDef = [SCClassDefinition definitionWithClass:[Measure class]
propertyNames:fields];