English 中文(简体)
形象的形成
原标题:bounce an image in to view

我有几部手法,如你点击ton子时的菜单。 我只是想稍加一谈。 因此,在出现这种情况时,它似乎正在消失。 这部法律显示:

[UIView beginAnimations:@"theAnimation" context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(yourAnimationHasFinished:finished:context:)];
[UIView setAnimationDuration: 0.3];
CGAffineTransform moveUp = CGAffineTransformMakeTranslation(0, -20);
scrollChangeClothing.transform = moveUp;
imgClothesMenuBg.transform = moveUp;
[UIView commitAnimations];  

[UIView beginAnimations:@"theAnimation" context:NULL];
[UIView setAnimationDelegate:self];
[UIView setAnimationDidStopSelector:@selector(yourAnimationHasFinished:finished:context:)];
[UIView setAnimationDuration: 0.1];
CGAffineTransform moveUp = CGAffineTransformMakeTranslation(0, 0);
scrollChangeClothing.transform = moveUp;
imgClothesMenuBg.transform = moveUp;
[UIView commitAnimations];  

上文(我觉得)的代码首先应显示20个餐点的图像,然后回到原来的点。

我试图把变革指挥部结合起来,但这样做也是有的。 难道我需要把第二次 an升到 set子? 那么,它一旦结束,就会消失吗?

最佳回答

我认为,你的法典没有奏效,因为两个动画片被 scene在幕后,变成一个身份变换。

  • 从第一组中删除《国际调查意见》的计算方法,只剩下下文。 这应当使你们的意见“陷入困境”。

    CGAffineTransform moveUp = CGAffineTransformMakeTranslation(0, -20); scrollChangeClothing.transform = moveUp; imgClothesMenuBg.transform = moveUp;

  • Try enclos the both/2005/4 in anexternal +beginAnimations:context:/+commit Animations/2005/4 if You do need to animate "sliding out”.

问题回答

是的,你应将你的第二点 an块移到第一种估算方法中。





相关问题
images sliding continuously with <table> and jQuery

I m trying to write a little test page that circulates images through a window (see image). I have colored boxes inside a table (gray border), with each box being a element. <table id="boxes" ...

WPF 3d rotation animations

I have a few 3d rectangles on my screen that I want to pivot around the Y axis. I want to press down with the mouse, and rotate the 3d object to a max rotation, but when the user moves their mouse, ...

Disable Windows 7 touch animation in WPF

In Windows 7 when you touch the screen there is a short animation that occurs at the touch point. In my WPF app I want to display my own touch points, without showing the one supplied by Windows. ...

jQuery block moving

I wanna move a div block to the top, so I coded like this: CSS part: .movingPart{ margin-top:80px; } jQuery part: $(document).ready(function() { $( #btn ).click(function() { $( .movingPart )....

Direct 2D gnuplot PNG animation?

Can anyone please confirm that yes/no Gnuplot 4.5 (on CVS) can output 2D animated PNG files? I have numerous datasets but one line that I d like to show iteratively in 3 different places in my graph. ...

Visual State Manager VS Animations in WPF

There is a lot of talk about the simplicity of Visual States and the transitions between them in WPF/Silverlight. I have the need to generate animations dynamically at runtime, to animate the ...

Create a ImageIcon that is the mirror of another one

I ll like to know if there is a way to create a ImageIcon that is the mirror of another ImageIcon. Searching on Google, I found how to do it by using many AWT libraries. Is there a way to do it with ...

how to drag in the animation in iphone application?

Iphone application is using the static co-ordinates to reach at some points in the application,which is based on the button event. But what i want is when i drag the item than it should reach at some ...

热门标签