I think it is the following code, I haven’t tested it, since I don’t know the result.
CGAffineTransform *scale = CGAffineTransformMakeScale((1 - 0.5 * scaleFactor), (1 - 0.5 * scaleFactor));
CGAffineTransform *scale2 = CGAffineTransformMakeTranslation(-(self.player.bounds.width / 4 * scaleFactor), -(self.player.bounds.height / 4 * scaleFactor));
// concat the 2 CGAffineTransforms.
CGAffineTransform *transform = CGAffineTransformConcat(scale, scale2);
self.player.transform = transform;
solved What is the equivalent code for this Swift code?