Search code examples
iosinterface-builderlayeralpha

iOS: how to add alpha to three layers of background


I want something like this:

enter image description here

There are three layers of view, first is the background. Then there is an alpha layer, and another alpha layer contains "SAVE LOAD"

My question is how to set the alpha value and background color for the top 2 views so that it can display this desired layering. Many thanks!


Solution

  • From my point of view, it looks like

    • 50% alpha on black
    • 100% alpha on dark green

    Yet, your designer might be a better fit to ask.

    Edit: You might have to play with the alpha on the black a little to get a good match without detailed information from your designer. As to the dark green, I cannot see any transparency, so I'd just go for opague to keep the alpha parts low for the graphics engine.