[ASControlNode] modified hitTestDebug tool vizualize clipping of .clipsToBounds & fixed bug

- added orange overlay edge highlighting if tapable area clipped by .clipsToBounds of any parent in the hierarchy
- fixed bug in comparison of child / parent rect edges
This commit is contained in:
Hannah Troisi
2016-04-10 00:19:00 -07:00
parent 4b1d65e862
commit 7fa810c77f
2 changed files with 51 additions and 28 deletions

View File

@@ -13,6 +13,8 @@
/**
Class method to enable a visualization overlay of the tapable area on the ASControlNode. For app debugging purposes only.
Overlay = translucent green color, edges clipped by hitTestDebug of any parent in the hierarchy = dark green bordered edge,
edges clipped by clipToBounds = YES of any parent in the hierarchy = orange bordered edge.
@param enable Specify YES to make this debug feature enabled when messaging the ASControlNode class.
*/
+ (void)setEnableHitTestDebug:(BOOL)enable;