Iphone 如何平滑地上下设置图像动画。苹果手机
我想上下平滑地设置图像的动画。任何人都知道怎么做。看看简单的UIView UIImageView动画 iPhone应用程序中最酷的一点是它们中的许多应用程序都是动画。您可以在屏幕上浏览视图、淡入淡出、旋转等等! 这不仅看起来很酷,而且动画是一个很好的指示器,表明用户应该注意正在发生的事情,例如更多的信息变得可用Iphone 如何平滑地上下设置图像动画。苹果手机,iphone,ios,ipad,uianimation,Iphone,Ios,Ipad,Uianimation,我想上下平滑地设置图像的动画。任何人都知道怎么做。看看简单的UIView UIImageView动画 iPhone应用程序中最酷的一点是它们中的许多应用程序都是动画。您可以在屏幕上浏览视图、淡入淡出、旋转等等! 这不仅看起来很酷,而且动画是一个很好的指示器,表明用户应该注意正在发生的事情,例如更多的信息变得可用 确保导入以下框架: 进口 进口 您可以使用这些值,直到获得所需的结果。如果这是你的解决方案,就接受这个答案 - (void) showProgressView { if (progres
确保导入以下框架: 进口 进口 您可以使用这些值,直到获得所需的结果。如果这是你的解决方案,就接受这个答案
- (void) showProgressView
{
if (progressViewBack.frame.origin.y == 460.0)
{
[self.view bringSubviewToFront:progressViewBack];
[progressViewBack setFrame:CGRectMake(6.0, 460, 308.0, 126.0)];
[progressViewBack setBounds:CGRectMake(0, 0, 308, 126.0)];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[progressViewBack setFrame:CGRectMake(6.0, 334.0, 308.0, 126.0)];
[UIView commitAnimations];
}
else if (progressViewBack.frame.origin.y == 334.0)
{
[progressViewBack setFrame:CGRectMake(6.0, 334.0, 308.0, 126.0)];
[progressViewBack setBounds:CGRectMake(0, 0, 308.0, 126.0)];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[progressViewBack setFrame:CGRectMake(6.0, 460.0, 308.0, 126.0)];
[UIView commitAnimations];
}
}
- (void) showProgressView
{
if (progressViewBack.frame.origin.y == 460.0)
{
[self.view bringSubviewToFront:progressViewBack];
[progressViewBack setFrame:CGRectMake(6.0, 460, 308.0, 126.0)];
[progressViewBack setBounds:CGRectMake(0, 0, 308, 126.0)];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[progressViewBack setFrame:CGRectMake(6.0, 334.0, 308.0, 126.0)];
[UIView commitAnimations];
}
else if (progressViewBack.frame.origin.y == 334.0)
{
[progressViewBack setFrame:CGRectMake(6.0, 334.0, 308.0, 126.0)];
[progressViewBack setBounds:CGRectMake(0, 0, 308.0, 126.0)];
[UIView beginAnimations:nil context:NULL];
[UIView setAnimationDuration:1.0];
[UIView setAnimationDelegate:self];
[progressViewBack setFrame:CGRectMake(6.0, 460.0, 308.0, 126.0)];
[UIView commitAnimations];
}