Quote:
Originally Posted by matzino
Hej folks,
can anyone give me a hint what the best way is to move an UIView in and out, by following the finger movement like it works by the newscenter app under iOS 5?
I can't find any helpful links...
thanks in advance
matzino
|
What app are you talking about, and what animation in that app? I found an app on the app store called NewsCenter Global (NewsCtrGlobal), but I don't see any special animations in it.
It would be easier if you could describe the type of animation you are after, rather than expecting people reading your post to go hunt down some app install it, and then hunt through it, looking for what you are talking about.
In general terms, Core Animation gives you lots of cool animation options for UIView. Take a look at the UIView class methods that start with animateWithDuration:
There are several different flavors of animation methods. The simplest is animateWithDuration:animations:. The most powerful, and the most complex, is called animateWithDuration:delay

ptions:animations:compl etion:
Those methods let you provide a block of code that changes animatable properties of one or more views. The changes are done as an animation.
There are also animations that let you do view transitions.
If you need more complex animations, you can use CAAnimation objects and CALayers, but that gets a little more complicated. More powerful, but there's more to learn in order to use it.