When hiding all properties in some mode, the section can become empty as well.
For example:
- in editing mode a section "Status" is shown with admin fields 'active' and 'verified';
- these fields should eb hidden in Normal mode, which is easy:
[entityDef propertyDefinitionWithName:@"active"].existsInNormalMode = FALSE;
[entityDef propertyDefinitionWithName:@"verified"].existsInNormalMode = FALSE;
The "Status" section now becomes empty unless in editing mode. However, the section name is still shown (without further content - as intended).
Emptying the name from propertyNameString doesn't help much either, it leaves a space-wasting empty row.
Unless a solution already exists (if so: please let me know!), I'd suggest something like:
[entityDef sectionWithName:@"Status"].existsInNormalMode = FALSE;
Or -even better- a self-aware sections:
[entityDef emptySectionsWithName:@"Status"].existInNormalMode = FALSE;