Will iOS coordinate system apply CTM while caculating coordinates?

Say I have a UIView, and apply a scaleTransform below:

    float scale = MIN(scaleHorizontal, scaleVertical);
    CGAffineTransform scaleTransform = CGAffineTransformIdentity;
    scaleTransform = CGAffineTransformMakeScale(scale, scale);

If I add a tap gesture recognizer to this view, and I will call locationInview for the touch events like:

- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
    UITouch *touch = [touches anyObject];
    CGPoint touchPoint = [touch locationInView:self];

Will the locationInView apply CTM while calculating the points?

Source: New Questions

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.