【发布时间】:2013-05-16 07:23:50
【问题描述】:
在 Apple Photos App 中,当它从纵向旋转到横向时。图像将在其中心点旋转。但是,我自己创建的照片应用程序并没有在中心点上旋转。
结构是这样的..
当它旋转到横向时..它将如下所示
然后我将在
中平铺页面(ImageScrollView)-(void)didRotateFromInterfaceOrientation:(UIInterfaceOrientation)fromInterfaceOrientation
有没有人知道如何让它在屏幕中心旋转?
【问题讨论】:
-
它不会自动旋转图像。你得自己做。更改scrollView的框架大小,它的ContentSize,然后相应地设置你的imageViews的框架
-
我建议你先看这篇文章:techotopia.com/index.php/…
标签: ios orientation screen-rotation