2015-03-25 64 views
-1

喜欢标题。如何使Smartisan OS Weather App等动态模糊效果进行动画计数?

演示视频是在这里:https://youtu.be/siiG-cBD4j4

渴望你的真诚,你确实help.Thank。

+0

你能告诉我们你试过的代码吗? – 2015-03-25 05:12:41

+0

你想让我们为你写代码吗?或者你尝试过一些东西。你必须分享你的尝试。 – 2015-03-25 05:18:50

+0

哎呀,对不起,我没有这样做。而我对此的想法是Arkadiusz Holko的[Motion Blur](http://holko.pl/2014/07/21/motion-blur/)和dataxpress的[UICountingLabel] (https://github.com/dataxpress/UICountingLabel)。但是任何一个都有更高效和更简单的解决方法? – KittenYang 2015-03-25 05:19:09

回答

0

您可以在此动画块内编写日期变更代码。你可以得到相同的运动模糊效果:

[UIView animateWithDuration:0.5 
          delay:0 
     usingSpringWithDamping:0.8 
      initialSpringVelocity:0.6 
         options:UIViewAnimationOptionAllowUserInteraction | UIViewAnimationOptionBeginFromCurrentState 
        animations:^{ 

         [self.view.superview layoutIfNeeded]; 
; 

    } completion:nil];