I'm really interested in creating a UIScrollView similar to the Yahoo Weather app. Here is an example video:
http://www.youtube.com/watch?v=a-q_yetkpik
I found this Git that will make me do a fold thing:
https://github.com/justinmfischer/core-background
But how would you achieve a blur effect at the top, since as the content scrolls, it almost disappears behind the UINavigationBar
Any help would be appreciated!
I wrote code for user interface effects in Yahoo! Weather, we will be happy to answer your question.
It looks like you understood how to make the blur (disappear between the blurry image based on pixel displacement, maximize to a certain extent ... for an even better effect, you can have several steps in the blur - i.e., disappear between non-blurred to half blurred, then semi-blurry until completely blurred, etc.).
To fade under the effect, you can set the mask property at the content content level:
https://developer.apple.com/library/mac/documentation/graphicsimaging/reference/CALayer_class/Introduction/Introduction.html#//apple_ref/occ/instp/CALayer/mask
A mask is an image that fades from transparent to opaque.
-. Iain
Iām probably a little late for the party, but I have an example project that does just that. I tried to browse Yahoo! an application for the specified image mask that Ian was talking about. I still can not use it as he described. So I created CALayer on the fly to achieve the effect.
(@Iain, awesome work! Big fan)
Here is the GitHub link
I have not personally tried it, but this may be a good start: https://github.com/kronik/DKLiveBlur
DKLiveBlurSources of the DKLiveBlur and Demo app for displaying the blur effect in real time, similar to the iOS weather app iOS.
DKLiveBlur
Sources of the DKLiveBlur and Demo app for displaying the blur effect in real time, similar to the iOS weather app iOS.
I got a similar effect using FXBlurView: https://github.com/nicklockwood/FXBlurView
You simply set blurRadius relative to the scroll amount: scrollView.contentOffset.y
scrollView.contentOffset.y
Thanks to Iain for pointing out the CALayer mask.
Download the sample blur code from Evan Davis 's blog .
Source: https://habr.com/ru/post/949875/More articles:Cancel async web service call - multithreadinghttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/949871/only-allow-passportjs-authenticated-users-to-visit-protected-page&usg=ALkJrhgMZ3C4xM9Sxp62x0oj29fpqv3-LAConfiguring a firewall and pureftpd with external access - vagranthttps://translate.googleusercontent.com/translate_c?depth=1&rurl=translate.google.com&sl=ru&sp=nmt4&tl=en&u=https://fooobar.com/questions/949873/warn-before-sending-emails-to-external-domains-in-outlook&usg=ALkJrhjdBjy1d4fagALx7gyJ4iK6MbROJQUPDATE query PyMysql - pythonjQuery scroll down to element not up - javascriptHow to remove arrows in scrollbar via CSS - htmlWhy is only one aggregate instance changed per transaction? - domain-driven-designHaddock: Documentation for instance functions with quirks replaced by default - haskellcannot install mysql2 on mac os 10.9 - ruby āā| fooobar.comAll Articles