motionblur
<a href="https://github.com/fastred/motionblur" target="_blank">https://github.com/fastred/motionblur</a>
note how the text and icons on the menu get blurred when it slides in and out.
注意看,這個文字以及圖檔會在滑入或者滑出的時候變得模糊了.
usage
first, import it with:
首先,導入頭檔案:
then use it with:
然後這麼用:
snapshot and blur are computed before the animation, that's why the api is asynchronous. you should also see the example project and read comments in the header file:<code>classes/uiview+motionblur.h</code>.
截圖以及模糊會在動畫執行前就計算好了.是以,這是這個api為什麼是異步的.你可以檢視頭檔案來了解詳情.
demo
to run the example project; clone the repo and open <code>example/motionblur.xcodeproj</code>.
requirements
ios 8 and above
installation
motionblur is available through cocoapods. to install it, simply add the following line to your podfile:
motionblur支援cocoapods.
author
arkadiusz holko:
<a href="http://holko.pl/">blog</a>
<a href="https://twitter.com/arekholko">@arekholko on twitter</a>