-1

As we all know, iOS 8 having a perspective zoom feature in the home screen which zooms depend on the angle of a device and how it moves.

I want to duplicate that feature inside my app. I found a question to find out the angle of a device here.

How can I determine the angle of the device?

Measuring tilt angle with CMMotionManager

I need to discuss the ideas to zoom the image depend on the angle of a device. Any help would be appreciated.

Edit: It is a duplicate of this question: iOS 7 parallax effect in my view controller

Thanks for you help.

Community
  • 1
  • 1
Dinesh Raja
  • 8,501
  • 5
  • 42
  • 81
  • possible duplicate of [iOS 7 parallax effect in my view controller](http://stackoverflow.com/questions/18972994/ios-7-parallax-effect-in-my-view-controller) – Dinesh Raja Jun 02 '15 at 07:25

1 Answers1

3

That feature is called a 'parallax effect' and there is built-in support in Cocoa Touch for it. You don't need to re-invent the wheel to add that effect to your apps. Search the web for information on UIInterpolatingMotionEffect. Here, in particular, is Apple's brief documentation on it.

wltrup
  • 778
  • 1
  • 4
  • 14
  • Thank you. I didn't know that. I asked to close my own question as a duplicate of other question. Thanks again. – Dinesh Raja Jun 02 '15 at 07:25