Open GeekTree0101 opened 5 years ago
In my case, i solved this issue
self.tableNode.performBatchUpdates({
// remove rows
self.tableNode.deleteRows(at: [ ...... ],
with: animated ? .automatic: .none)
}, completion: { _ in
_ = self.tableNode.view.subviews
.filter({ $0 is UITableViewCell })
.filter { $0.subviews.first?.subviews.isEmpty ?? false ||
$0.subviews.first?.subviews.first is UIImageView }
.map { $0.removeFromSuperview() }
})
Hey is that storyboard using with Texture ??
Nope i didn't use storayboard :)
(lldb) po self.tableNode.visibleNodes
<__NSCFArray 0x282f7ef10>(
<VEditorKit.VEditorTextCellNode: 0x103856200; frameInWindow = (0 -473.667; 414 1150); viewController = <VEditorKit_Example.EditorNodeController: 0x102c11680>; alpha = 1; frame = (0 0; 414 1150); interfaceState = { MeasureLayout | Preload | Display | Visible }; view = <_ASDisplayView: 0x102b2a400>; indexPath = (0, 0); tableNode = <ASTableNode: 0x103035600>>,
<VEditorKit.VEditorTextCellNode: 0x103099200; frameInWindow = (0 346.333; 414 83); viewController = <VEditorKit_Example.EditorNodeController: 0x102c11680>; alpha = 1; frame = (0 0; 414 83); interfaceState = { MeasureLayout | Preload | Display }; view = <_ASDisplayView: 0x102c79220>; tableNode = <ASTableNode: 0x103035600>>
)
(lldb) po [[self.tableNode.visibleNodes objectAtIndex:0] indexPath]
<NSIndexPath: 0xdb246ae24437396a> {length = 2, path = 0 - 0}
(lldb) po [[self.tableNode.visibleNodes objectAtIndex:1] indexPath]
nil
(lldb)
related with https://github.com/GeekTree0101/VEditorKit/issues/57