iphone应用程序启动时的图像介绍
大家好,我想为我的应用程序创建一个介绍图像(淡入淡出)。 这是我的代码,但当我在设备上运行应用程序时,我遇到了一个问题:iphone应用程序启动时的图像介绍,iphone,image,Iphone,Image,大家好,我想为我的应用程序创建一个介绍图像(淡入淡出)。 这是我的代码,但当我在设备上运行应用程序时,我遇到了一个问题: 我的主nib页面已显示 我的图像淡入淡出,然后再次淡入淡出3次 这是我的代码和附件。请查看: h m 哇。。。。为什么你不能用这样的东西来改变你的图像的阿尔法 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0f]; [UIView setAnimationDelegate:se
哇。。。。为什么你不能用这样的东西来改变你的图像的阿尔法
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationDelegate:self];
[introImage setAlpha:0.0f];
[UIView commitAnimations];
哇。。。。为什么你不能用这样的东西来改变你的图像的阿尔法
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationDelegate:self];
[introImage setAlpha:0.0f];
[UIView commitAnimations];
显示主nib似乎并不奇怪,因为它是viewDidLoad方法
我也更喜欢使用莫里恩回答中的动画素材。尽管如此:重复衰落可能是由多次调用viewDidLoad引起的。通过调试或日志记录检查它 显示主nib似乎并不奇怪,因为它是viewDidLoad方法 我也更喜欢使用莫里恩回答中的动画素材。尽管如此:重复衰落可能是由多次调用viewDidLoad引起的。通过调试或日志记录检查它
[UIView beginAnimations:nil context:nil];
[UIView setAnimationDuration:1.0f];
[UIView setAnimationDelegate:self];
[introImage setAlpha:0.0f];
[UIView commitAnimations];