I'm trying to create a simple iPhone app that displays a picture with a reflection beneath, and I want to rotate the picture around the X axis, using Core Animation.
I've started by creating a new iPhone app using the "View-based Application" template. I added a "Picture.jpg" image file, and then I added this to the view controller:
-...
I've been creating iPhone apps for a while now, using basic transformations (rotations, scale, etc) but now I'd like to do something a little more complex.
Maths really isn't my strongest point... but I was wondering how I might go about adding 'perspective' to a UIView (see the image below). I quickly mocked the screenshot up using sk...
Hi friends
In my ipad openGL based application I am drawing a 2D and 3D object and rotating it according to the user's finger motion....On pinching the screen user is enable to zoom those objects...But what I want is to prevent zooming the object at some limit, say more than 2x of the object size user cannot zoom in and user cannot zoom...
I'm trying to apply '3D perspective' to a UIView with a UIScrollView embedded inside. This will allow the user to scroll through a set of photos with a 3D effect.
Trouble is, the code below works fine in portrait orientation... but when I rotate the view to the landscape orientation, the scrolling no longer works.
I have tried to nest...
I'm working with some Core Animation for the first time and in the process of implementing a playing card that I can flip around, I've decided to use a CALayer to display the contents (not sure how I'm going to get two sides, but that's another question) and I need to be able to flip it over, move it, etc...
I'm using CATransaction with...
What's the meaning of m34 of the structure CATransform3D, I only know it can change the perspective, but what's the meaning when the value is -0.001 and 0.001?
...
Hi,
I am rotating a wheel which various subviews (UIImageViews and UIButtons)
However when I ask it to display each and every centre of every subview, it is giving me the same value everytime.
-(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
}
-(void) touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event {
...