vsandeepraju
vsandeepraju

Reputation: 129

How to fade the content of image view which reaches at the top & bottom while scrolling(Vertical)?

I had requirement as when ever we scroll images (have several image views of 300*150 size on scroll view) the alpha of the image must be gradually decreased/increased based upon scrolling.. so can any one help on this..

Thanks in Advance

need same as below but for image views

need the fade as on the third image

Sample Image

Upvotes: 0

Views: 231

Answers (1)

Jilouc
Jilouc

Reputation: 12714

The easiest way is to use a gradient image (white to transparent here) and add it to an UIImageView on top of the content.

Upvotes: 2

Related Questions