我正在尝试从其中心缩放 UIImageView。中心刻度有效,但我有一个问题!当我触摸图像时,它会在缩放时向下/向右跳跃。
这是我的代码:
[UIView animateWithDuration:0.5
delay:1
options:UIViewAnimationOptionBeginFromCurrentState
animations:(void (^)(void)) ^{
elefant.transform = CGAffineTransformMakeScale(1.5, 1.5);
}
completion:^(BOOL finished){
//elefant.transform=CGAffineTransformIdentity;
}];
注意:当我显示此 UIImageView 的尺寸检查器时,原点有一个从左上角向下和向右的箭头。我试图建立这个中心,但它没有帮助。
希望能在这里得到帮助,在此先感谢。
/巨魔