Greetings Programs!
I wouldn't mind having a flag/property that, when set, would display the cell only if there were records in the objects array.
Wg
UA-17470720-3
Posted 14 September 2015 - 02:58 PM
Greetings Programs!
I wouldn't mind having a flag/property that, when set, would display the cell only if there were records in the objects array.
Wg
P.S. I love Swift... talk Swift.. Never too old school to learn yet another programming language. LOL! ;-)
Posted 15 September 2015 - 06:26 AM
Hey Wg,
So if the flag hides the cell, how will you be able to add any new objects to it?
Anyways, you can manually remove the cell if you wish using something like the following (code based on our TasksApp sample):
- (void)viewDidLoad { [super viewDidLoad]; self.tableViewModel.sectionActions.detailModelConfigured = ^(SCTableViewSection *section, SCTableViewModel *detailModel, NSIndexPath *indexPath) { SCObjectSection *taskSection = (SCObjectSection *)[detailModel sectionAtIndex:1]; SCArrayOfObjectsCell *stepsCell = (SCArrayOfObjectsCell *)[taskSection cellForPropertyName:@"taskSteps"]; [taskSection removeCellAtIndex:[taskSection indexForCell:stepsCell]]; }; }
Posted 15 September 2015 - 06:59 AM
Hi Tarek,
Just trying to be lazier ; it's for scenarios where the data is read only.
In this case, in the Details, there are no grids so the lazy flag would hide it automagically.
Simulator Screen Shot Sep 15, 2015, 8.48.44 AM.png 85.22K
10 downloads
I suppose I could keep doing it in code; we've just been spoiled with all this IB integration and want more .
Wg
P.S. I love Swift... talk Swift.. Never too old school to learn yet another programming language. LOL! ;-)
Posted 15 September 2015 - 07:06 AM
ok, we'll look into it
0 members, 0 guests, 0 anonymous users