UIKit Dynamics: recognize rounded Shapes and Boundaries
问题 i am writing an App where i use UIKit Dynamics to simulate the interactions of different circles with one another. I create my circles with the following code: self = [super initWithFrame:CGRectMake(location.x - radius/2.0, location.y - radius/2, radius, radius)]; if (self) { [self.layer setCornerRadius: radius /2.0f]; self.clipsToBounds = YES; self.layer.masksToBounds = YES; self.backgroundColor = color; self.userInteractionEnabled = NO; } return self; where location represents the desired