【问题标题】:Transition between background images in iOSiOS中背景图像之间的过渡
【发布时间】:2013-07-27 18:50:16
【问题描述】:

我希望我的应用程序的欢迎视图看起来与 Twitter 的相似:

我的意思是,我想定期切换该视图中显示的图片,并带有某种褪色效果。我一直在寻找这方面的一个例子,但我没有找到。有人可以帮帮我吗?

谢谢!

【问题讨论】:

    标签: ios twitter uiimageview transition fade


    【解决方案1】:

    使用[NSTimer scheduledTimerWithTimeInterval:time target:self selector:@selector(function) userInfo:nil repeats:YES];

    此函数每 x 次启动一个选择器,因此您可以更改其上的背景图片。

    对于动画,使用:

    [view AnimateWithDuration:1.0 delay:0.1 
    option:UIViewAnimationOptionAutoreverse 
    animations:^{
    // content of the animation
    } completion:NULL];
    

    所有选项here

    【讨论】:

      猜你喜欢
      • 2014-07-22
      • 2023-03-10
      • 1970-01-01
      • 2021-08-13
      • 1970-01-01
      • 2013-11-17
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多