I want to fix a point (left top point) and scale (zoom out) the UIView according to the point
like this image

Now I use self.transform = CGAffineTransformMakeScale( 0.7 , 0.7); to scale the UIView , But it only can scale the UIView according to the center point

Edit
I try to use set anchorPoint with (0,0) but the view position be wrong

Use anchorPoint property:
self.layer.anchorPoint = CGPointMake(0.0, 0.0);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With