So I have a basic understanding of geometry with angles, rotations, and such, and I'm trying to make a diagonal line that receives touch by a certain frame. I have something like this to make the diagonal line:
After the transformation, the frame becomes "undefined and therefore should be ignored" (according to UIView class reference). So, without use of the frame, how can I pick up when a users finger crosses over the line in the touchesMoved method? Also, the bounds size property is kind of limited due to the fact that it is based off the center and not the origin. Is there any way around this?
Code:
diagLine1.frame=CGRectMake(30,30,150,25)];
diagLine1.transform=CGAffineTransformMakeRotation(degreeToRadian(45));