-1
我想用UIImageview
做一個縮放動畫,但是當使用這個動畫塊時,圖像視圖會在動畫之前稍稍移動。代碼我使用:我想在UIImageview中做一個縮放動畫,但是我收到了一個意想不到的行爲
[UIView animateWithDuration:1.0
delay:0
options:UIViewAnimationOptionBeginFromCurrentState
animations:(void (^)(void)) ^{
imgLogoImage.transform=CGAffineTransformMakeScale(1.03, 1.03);
}
completion:^(BOOL finished){
imgLogoImage.transform=CGAffineTransformIdentity;
}];
可能的重複[如何正確縮放UIImageViewView與UIView animateWithDuration?](http://stackoverflow.com/questions/7081076/how-to-scale-uiimageview-properly-with-uiview-animatewithduration) – Shai