Iphone 在WillAnimateRotationInterfaceOrientation中禁用动画?

Iphone 在WillAnimateRotationInterfaceOrientation中禁用动画?,iphone,objective-c,ios,cocoa-touch,rotation,Iphone,Objective C,Ios,Cocoa Touch,Rotation,我有一个滚动视图,上面有一堆照片缩略图,就像在照片应用程序/图像选择器中一样。当我旋转它时,我想在旋转动画中间更新滚动视图(在 WiRealTooToToToToePrime)中,但我只希望它在没有动画的情况下更新(不希望缩略图在它们移动到新位置时动画)。我怎样才能做到这一点?我正在使用setCenter在旋转时移动缩略图。我已经尝试了所有其他旋转方法,但它们没有完成工作,因为我需要在旋转动画发生时进行更新,因为这是看起来最好的时候 在WillAnimateRotationInterfaceOr

我有一个滚动视图,上面有一堆照片缩略图,就像在照片应用程序/图像选择器中一样。当我旋转它时,我想在旋转动画中间更新滚动视图(在<代码> WiRealTooToToToToePrime)中,但我只希望它在没有动画的情况下更新(不希望缩略图在它们移动到新位置时动画)。我怎样才能做到这一点?我正在使用setCenter在旋转时移动缩略图。我已经尝试了所有其他旋转方法,但它们没有完成工作,因为我需要在旋转动画发生时进行更新,因为这是看起来最好的时候

WillAnimateRotationInterfaceOrientation
方法中使用以下工作:

[UIView setAnimationsEnabled:NO];
//insert what you want to not be animated here
[UIView setAnimationsEnabled:YES];

WillAnimateRotationInterfaceOrientation
方法中使用以下工作:

[UIView setAnimationsEnabled:NO];
//insert what you want to not be animated here
[UIView setAnimationsEnabled:YES];