cocoa - animate views along custom paths - iphone

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?

Related

UIBezierPath onTouch Drawing Example with smooth draw line

i want to smooth and curve draw line on finger touch and using only UIBezierPath.i am new for drawing concept in iOS and i need any example or code and how to do it like my requirement can any one guide me with greatly appreciated!
Thanks in Advance!
I have one example for free hand drawing but one problem is it is not much smoother but you can have one starting point using this example.
Happy Coding :)

Orientation Change of UIView based on two points

First post here, great site!
Basically, Im trying to rotate a UIImageView based on two points. Imagine the two points form a line going across the screen. I need the angle of the UIImageView to match the angle of that line...
Heres a diagram of what Im trying to say as its quite hard with words:
http://i40.tinypic.com/t5k2yr.png
Thanks for your time!
Would this work?
imageView.transform = CGAffineTransformMakeRotation(atan2(y2-y1,x2-x1));

How to do circular scroll view?

I am doing an application in which i have to show a semi circle on which there should be different options in scroll view. That means on that image of semicircle i have to show scroll in circular way .
How can i do that??
Can anyone please guide me ?
You mean you'd need to rotate the contents inside the semi-circle like in a "wheel of fortune" kind of way?
I don't think you can do that with a regular UIScrollView, you'd have to handle the touches and do the rotation yourself.
I'd recommend you start by taking a look at the "Touches" code sample from the UIKit docs:
http://developer.apple.com/library/ios/#samplecode/Touches/Introduction/Intro.html#//apple_ref/doc/uid/DTS40007435

rotate uiview using touch (ipad and iphone)

I am trying to design another app and am struggling to think of the best way to do it. I'm after some advice please!
If you imaging a bicycle wheel in the middle of the ipad (and iPhone)... I want the user to be able to click on the tyre and spin it to the left or right. Depending on the speed of the swish will drive the speed of the wheel rotation.
It should rotate around the centre of the wheel and not move any other direction.
Do I need to use some graphics code, or simply listen for the touch, check the area they touched, then rotate the image around it's centre left or right?
Really I'm after some pointers around the methods to use - I'm not being lazy and asking for code, but if anyone knows of tutorials - that would help immensely!!
Thanks for any info.
Your best bet is to use one of the UIGestureRecognizer subclasses, probably UIPanGestureRecognizer as it includes velocity.
Apple's SimpleGestureRecognizers project will help you get started.

how to animate some portion of images?

I am implementing fun application.In which i want to animate some area(portion) of images.
I dont know how it possible.If u have any idea then please help me.
If you're looking to animate a portion of an image you could just create a smaller animation and put it at the right relative location inside a larger image.
If you want to know how to animate images in general, that's a different question entirely.