How to access a layer inside UIView custom class generate with Paintcode?
问题 I'm using Paintcode V3 and last Xcode for my project. In Paintcode I draw a red path, kind of "clock hand" with a radius variable to be able to rotate it. In my Xcode project, this custom UIView is added to a main view. When the red path is rotating, I need to know when it intersects with another element of the view. I tried: if self.redPathView.frame.intersects(self.anotherView.frame) { //do something... } but it can't work because redPathView is the entire Paintcode canvas (the square frame