【问题标题】:How to add pop up image animation on screen如何在屏幕上添加弹出图像动画
【发布时间】:2014-01-30 04:49:46
【问题描述】:

我将制作一个问答游戏,用户必须从 4 个选项中选择正确答案。这些选项将是图像格式。我希望这些矩形图像将通过弹出动画逐个出现在屏幕上。 你能告诉我如何在 iPhone App 上添加弹出动画吗? 注意:弹出动画应该像 Keynote 中的 Pop Up 过渡。我的意思是在 Pop Up 之后它会来回振动一点。

【问题讨论】:

    标签: ios ios7 core-graphics core-animation


    【解决方案1】:

    检查此 SO link

    您可以根据自己想要的动画方式修改这些值。

    【讨论】:

    • 你能告诉我我是否希望弹出图像在弹出后像主题演讲中的弹出过渡一样抖动?
    • 我不确定你的意思。但是你可以在 cocoacontols.com 上查看类似的内容。
    【解决方案2】:
    //Set default frame for all 4 images.
    [UIView animateWithDuration:0.5 animations:^{
        //set frame for first image
    } completion:^(BOOL finished) {
       //this block will call after first animation is done.so after that animate 2nd image . do same for all 4 image.
    }];
    

    也许这会对你有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-06-29
      • 2019-12-15
      • 2020-06-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多