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

Why Range Visualization debug feature always showed #90

Closed
smoothdvd opened this issue Apr 30, 2017 · 4 comments
Closed

Why Range Visualization debug feature always showed #90

smoothdvd opened this issue Apr 30, 2017 · 4 comments

Comments

@smoothdvd
Copy link

I didn't add code [ASDisplayNode setShouldShowRangeDebugOverlay:YES] in AppDelegate.m, even not include AsyncDisplayKit+Debug.h

@smoothdvd
Copy link
Author

Sorry, I insert a code: ASDisplayNode.shouldShowRangeDebugOverlay = YES;

@appleguy
Copy link
Member

@smoothdvd could you clarify what the problem is? Maybe send a screenshot?

I have never heard a report of the range visualizer showing up unexpectedly. So make sure you search your entire project for the string "RangeDebugOverlay" (in case maybe another file is using the property syntax) and see if it is getting set anywhere.

Note it does not have to be in the AppDelegate. Anywhere in the app will cause it to show up, as long as it is set before a given range controller is created.

@appleguy
Copy link
Member

:) Thanks for updating - I was thinking it could've been that class method / property syntax! Glad you found it, hope we can help any other issues you run into.

@smoothdvd
Copy link
Author

smoothdvd commented Apr 30, 2017

@appleguy Is it a bug of Range Visualization debug feature:
Start a view controller A and a ASPagerNode in it, when I push view controller B from A and dismiss it, Range Visualization will lead exception.
If start a view controller A and move ASPageNode's page to index 2, push view controller B from A and dismiss it, there no error.

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

No branches or pull requests

2 participants