iphone - CAShapeLayer Line drawing -


i drawing line on 5 custom uiviews (like uitableview rows) 1 position (x,y axis) using cashapelayer.

my issue want know view cashapelayer (line in case) in. there cgintersect calayer , cgrect etc? trying create graph using core animation instead of chart api.

you check in shape layer intersects specific layer checking intersection of bounding box of path agains frame of other layer.

bool doesintersect = cgrectintersectsrect(cgpathgetboundingbox(path), layer.frame); 

Comments

Popular posts from this blog

user interface - Python attempting to create a simple gui, getting "AttributeError: 'MainMenu' object has no attribute 'intro_screen'" -

jquery - Common JavaScript snippet to share files on Google Drive, Dropbox, Box.net or SkyDrive -

Android Gson.fromJson error -