What happens to the frame of an image view after rotation?

Discussion in 'iOS Programming' started by drf1229, Jan 27, 2011.

  1. macrumors regular

    drf1229

    Joined:
    Jun 22, 2009
    #1
    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?
     

Share This Page