Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/iphone/38.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
iphone应用程序启动时的图像介绍_Iphone_Image - Fatal编程技术网

iphone应用程序启动时的图像介绍

iphone应用程序启动时的图像介绍,iphone,image,Iphone,Image,大家好,我想为我的应用程序创建一个介绍图像(淡入淡出)。 这是我的代码,但当我在设备上运行应用程序时,我遇到了一个问题: 我的主nib页面已显示 我的图像淡入淡出,然后再次淡入淡出3次 这是我的代码和附件。请查看: h m 哇。。。。为什么你不能用这样的东西来改变你的图像的阿尔法 [UIView beginAnimations:nil context:nil]; [UIView setAnimationDuration:1.0f]; [UIView setAnimationDelegate:se

大家好,我想为我的应用程序创建一个介绍图像(淡入淡出)。 这是我的代码,但当我在设备上运行应用程序时,我遇到了一个问题:

  • 我的主nib页面已显示
  • 我的图像淡入淡出,然后再次淡入淡出3次
  • 这是我的代码和附件。请查看:

    h

    m


    哇。。。。为什么你不能用这样的东西来改变你的图像的阿尔法

    [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];