I would like to rotate an image by using the rotation point and single touch. Can you please any one help me to do this?
Thanks in advance.
Hi have a look on this once....
Touch rotate image
SO link
Related
I want to rotate the .gif image with 3D effect in iPhone application,can anyone help me to provide the sample code or any direction is also appreciated.
For starters I think #Brad Larsons website will help you (or his projects).
http://www.sunsetlakesoftware.com/2009/01/13/opengl-es-catransform3d
Thanks in advance.
I want to get the pinch effect to an image means i want to change the shape of an image when i perform pinching on an image. I don't know is it possible or not, if it is possible can any one help me to do it using objective c in iphone.
Actually your question itself is a big concept..Atleast you must have tried something to achieve it..we can help you out with the modules..
for a jump start -
study about touchesBegan:,touchesMoved:,and touchesEnded methods.
Instead of using Gesture Recogniser, try to make your own pinch effect by the above methods..
U'll get much more flexibility to control the touch points.
Hope it helps.. :)
you need to associate a pinch gesture (type of UIPinchGestureRecognizer)with your UIImageView .
Check the below blog tutorial with sample code
Working with UIGesturerecognizer
Sample code from Apple
You can find help here : Limit maximum scale for scaling image with pinch gesture in IOS
Basically, using a gesture, you get a factor that you use to scale your image.
Is this possible? maybe using the CGAffineTransformations?
More specifically, my objective is to move an imageView along a parabolic trajectory using only an animation.
Maybe someone can point me in the right direction?
Thanks!
Hope this helps
How do I translate parabolically?
How can I animate the movement of a view or image along a curved path?
I want to create a 360 degree turntable showing lots of pictures (12, 24 or 36) by controlling that rotation with touch events (like that example but coded for an iOS app natively).
The simplest idea depending on the touch position is to load that specific uiimage.
Any ideas what's the best practice for that? Is there a chance to create that image-turntable with the help of coreanimation faster? Any other hints on that? Any other projects known where I can get some help on that?
Thanks for your time and hints in the right direction.
Here's another example for an ipad-app from the "audi a8".
From the first example it becomes obvious that the objects have actually been photographed for each angle of rotation. This is the really tricky part. You will need a tripod and a camera with remote control, and if possible also a rotational platter to keep angles consistent.
Implementation is relatively straightforward. As you guessed, you just track the touch positions and, depending on delta to the last touch position, show the appropriate image.
well, you can just use the HTML/CSS/JS used in the same example... just load that in an UIWebView in your app and load your site embedded as a resource...
Subclass UIImageView, load array of your frames, handle tap movement over the screen y-axis and change active image accordingly. Don't forget to loop your images. :)
I am working on xcode4.1 not in coca 2d. I want to handle image through accelerometer. How can I do this?
Use an UIImageView to display it. Use the center property to move it on the screen.
Use the UIAccelerometerDelegate to get the move of the phone.