1

在 Apple Photos App 中,当它从纵向旋转到横向时。图像将在其中心点旋转。但是,我自己创建的照片应用程序并没有在中心点上旋转。

结构是这样的。。 在此处输入图像描述

当它旋转到横向时..它看起来像下面 在此处输入图像描述

然后我将平铺页面(ImageScrollView)

-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation

有谁知道如何让它在屏幕中心旋转?

4

1 回答 1

1

Ushan87 谢谢..

找到答案..设置图像框架必须在

- (void)willAnimateRotationToInterfaceOrientation:(UIInterfaceOrientation)toInterfaceOrientation duration:(NSTimeInterval)duration;

并且视图将在其中心旋转

于 2013-05-17T08:47:16.533 回答