Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Unexpected _ASTableViewCell #57

Open
GeekTree0101 opened this issue Mar 11, 2019 · 2 comments
Open

[Bug] Unexpected _ASTableViewCell #57

GeekTree0101 opened this issue Mar 11, 2019 · 2 comments
Labels
bug Something isn't working

Comments

@GeekTree0101
Copy link
Owner

Unexpected view(_ASTableViewCell) hammering UITextView selection function.

스크린샷 2019-03-11 오후 4 39 35
스크린샷 2019-03-11 오후 4 39 31

Expected UITableViewCell

(lldb) po self.tableNode.view.visibleCells[0].subviews[0].subviews
▿ 1 element
  - 0 : <VEditorKit.VEditorImageNode-View: 0x106ee3110; node = <VEditorKit.VEditorImageNode: 0x1079efc00>; frame = (0 0; 414 450); clipsToBounds = YES>

Unexpected UITableViewCell

(lldb) po self.tableNode.view.subviews[10].subviews[0].subviews
▿ 1 element
  - 0 : <UIImageView: 0x10f73a3f0; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = <CALayer: 0x2815358e0>>
@GeekTree0101
Copy link
Owner Author

How to solve this issue?

  1. Check empty subviews UITableCellContrainerView
  2. Check UIImageView contained UITableCellContainterView
  3. Remove upper case zombie cells
        self.tableNode.performBatchUpdates({
            self.tableNode.deleteRows(at: deleteIndexPaths,
                                      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() }
        })

@GeekTree0101
Copy link
Owner Author

I just resolve about this issue at #62
but, we must have to find best solution & core bug at Texture framework

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant