Changing Opacity of Super View Strange Effect Causes Strange Opacity Changes on Subviews

ios, ipad, iphone, objective-c

Solution

Your answer can be found here iOS controlling UIView alpha behaviour for subviews.

Basically set the UIViewGroupOpacity.

Problem

I have a superview containing two overlapping subviews (one pink and one green). When changing the opacity of the parent view, the subviews show the overlapping section (even though they are fully opaque). How can I make it so the view as a whole fades out, not the individual subviews. I've also tried changing the opacity of the `CALayer`. Here is a screen: A full version of the code can be found here.

Original source

Related problems