Hi all,
STV seems to have a few issues with iOS 11 that I've been trying to fix over the last few days without success. Maybe someone else has already fixed this and can point me in the right direction.
Here's some code to show the issues, a simple viewDidLoad:
- (void)viewDidLoad { [super viewDidLoad]; self.navigationBarType = SCNavigationBarTypeEditRight; NSMutableArray *stringItems0 = [NSMutableArray arrayWithArray:@[@"String Item 0", @"String Item 1", @"String Item 2"]]; SCArrayOfStringsSection *stringsSection0 = [SCArrayOfStringsSection sectionWithHeaderTitle:@"Strings Section Header" items:stringItems0]; // stringsSection0.footerTitle = @"String Section Footer"; stringsSection0.allowAddingItems = YES; stringsSection0.allowMovingItems = YES; stringsSection0.allowDeletingItems = YES; stringsSection0.allowEditDetailView = YES; stringsSection0.addNewItemCell = [SCTableViewCell cellWithText:@"Add a string item..."]; stringsSection0.addNewItemCellExistsInEditingMode = YES; stringsSection0.addNewItemCellExistsInNormalMode = NO; stringsSection0.placeholderCell = [SCTableViewCell cellWithText:@"No string items!"]; stringsSection0.cellActions.willConfigure = ^(SCTableViewCell *cell, NSIndexPath *indexPath) { if (cell.isSpecialCell) { cell.accessoryType = UITableViewCellAccessoryNone; } else { cell.accessoryType = UITableViewCellAccessoryDisclosureIndicator; } }; [self.tableViewModel addSection:stringsSection0]; }
Some issues I'm seeing in no particular order:
Editing a String Item and tapping Done and the cells alpha is set to 0.0f after a slight delay. This seems to be happening deep within UITableView via _updateWithItems:updateSupport:. Tapping Cancel instead of Done and the alpha is left at 1.0f.
Editing a String Item, tapping Done, and then Edit, and the cell reappears, however the cell still has the old value and not the new value. Selecting the cell to edit it again shows the new value correctly.
After adding a new String Item STV seems to get the new cell confused with the "Add a string item..." cell.
And then note if the footerTitle is enabled then everything works as expected!!
Had anybody else been seeing these sort of issues in their apps, and have any fixes?