[UIView animateWithDuration:1 animations:^{
// 平移
CGAffineTransform translate = CGAffineTransformTranslate(CGAffineTransformIdentity, 100, 100);
// 缩放
CGAffineTransform scale = CGAffineTransformScale(translate, 0.5, 0.5);
self.view.transform = scale;
}];
复制代码
转载于:https://juejin.im/post/5a30e5255188257db3727e80