如何在 iOS 中复制透视缩放主屏幕功能?

How to duplicating perspective zoom home screen feature in iOS?

众所周知,iOS8 在主屏幕中具有透视缩放功能,缩放取决于设备的角度及其移动方式。

我想在我的应用程序中复制该功能。我在这里找到了一个问题来找出设备的角度。

How can I determine the angle of the device?

Measuring tilt angle with CMMotionManager

我需要讨论根据设备角度缩放图像的想法。任何帮助将不胜感激。

编辑: 这是这个问题的副本:iOS 7 parallax effect in my view controller

感谢您的帮助。

该功能称为 'parallax effect',Cocoa Touch 内置了对它的支持。您无需重新发明轮子即可将这种效果添加到您的应用程序中。在网络上搜索有关 UIInterpolatingMotionEffect 的信息。 Here,尤其是 Apple 关于它的简短文档。