Basically I want to move a UILabel up 20px and resize it to 55% of it's original size.
=> x stays the same, y,height, width decrease.
What I came up is following :
//_line a UILabel*
CGFloat scaleFactor = 0.55f;
[UIView animateWithDuration:1.0 animations:^{
CGAffineTransform transform = CGAffineTransformMakeTranslation(0, -20);
transform = CGAffineTransformScale(transform, scaleFactor, scaleFactor);
_line.transform = transform;
}];
Unfortunately I don't get the expected result. It (slightly) moves up but also moves to the right.
What am I missing ?