skip to Main Content

I need to make my scrollview to be transparent at top and bottom while the underneath text view could be scrolled like shown below.
enter image description here

I made one .png image in photoshop with gradient (black on top) and transparency at bottom.
When I added the image onto the Image view that is atop the scorllview, and run it on the simulator, the whole image is pure black and transparency gone.

Can someone please advise?

2

Answers


  1. Chosen as BEST ANSWER

    My mistake... I have saved the image as JPG. not PNG. PNG is working properly. Thanks!


  2. Set your imageView’s background color to clear.

    Also, wouldn’t the image you need be white on bottom and transparent on top, rather than black on top and transparent on bottom?

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search