2015-03-25 62 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];