I understand that there’s cost involved in rendering a semitransparent view over another view. What about a totally transparent view over another view. I.E. one whose background color is [UIColor clearColor].
I understand that there’s cost involved in rendering a semitransparent view over another view.
Share
I wouldn’t necessarily say “free.” The
UIViewis being allocated memory. So, with respect to the memory usage, no, it’s not “free.” However, it will not require much work from the GPU, if and only if the alpha value (opacity) of the background color is exactly zero. If, like you said, you are usingclearColor, the opacity is zero. If the opacity is not zero, the GPU has to blend colors, which will consume more graphics memory.