顺时针旋转 90度
label.transform = CGAffineTransformMakeRotation(90 *M_PI / 180.0);
顺时针 旋转180度
label.transform = CGAffineTransformMakeRotation(180 *M_PI / 180.0);
顺时针旋转270度
label.transform = CGAffineTransformMakeRotation(270 *M_PI / 180.0);
CGAffineTransform transform = label.transform;
transform = CGAffineTransformScale(transform, 2,0.5);//前面的2表示横向放大2倍,后边的0.5表示纵向缩小一半
label.transform = transform;
时间: 2024-10-23 13:38:12