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

[ASTableNode & ASCollectionNode] Keepalive reference for node if their view is necessarily alive (has a superview). #793

Merged
merged 9 commits into from
Feb 9, 2018

Conversation

wsdwsd0829
Copy link
Contributor

Some uses will try to access view and maintain it for later use.
This PR will try to keep collection/tableNode alive as long as corresponding view still in use (may not in hierarchy), similar to ASDisplayNode & ASDisplayView.

@appleguy appleguy changed the title Keep node alive [ASTableNode & ASCollectionNode] Keepalive reference for node if their view is in a UIWindow. Feb 9, 2018
@appleguy
Copy link
Member

appleguy commented Feb 9, 2018

This effectively replaces the keepalive reference that is in _ASDisplayView, since that code is not able to be used when subclassing UICollectionView and UITableView. (Even though we do have a +layerClass of _ASDisplayLayer for these cases).

@ghost
Copy link

ghost commented Feb 9, 2018

1 Warning
⚠️ Any source code changes should have an entry in CHANGELOG.md or have #trivial in their title.

Generated by 🚫 Danger

Copy link
Member

@nguyenhuy nguyenhuy left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Thanks!

@appleguy appleguy changed the title [ASTableNode & ASCollectionNode] Keepalive reference for node if their view is in a UIWindow. [ASTableNode & ASCollectionNode] Keepalive reference for node if their view is necessarily alive (has a superview). Feb 9, 2018
@appleguy appleguy merged commit 479d404 into TextureGroup:master Feb 9, 2018
bernieperez pushed a commit to AtomTickets/Texture that referenced this pull request Apr 25, 2018
…r view is necessarily alive (has a superview). (TextureGroup#793)

* fix SIMULATE_WEB_RESPONSE not imported TextureGroup#449

* Fix to make rangeMode update in right time

* Keep collection/table node alive if view still in use.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants