Become a MacRumors Supporter for $50/year with no ads, ability to filter front page stories, and private forums.

drf1229

macrumors regular
Original poster
Jun 22, 2009
237
0
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:
Code:
diagLine1.frame=CGRectMake(30,30,150,25)];
diagLine1.transform=CGAffineTransformMakeRotation(degreeToRadian(45));
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?
 
Register on MacRumors! This sidebar will go away, and you'll see fewer ads.