UIView does not necessarily have the concept of being ahead. UIWindows may or may not be key, but it's not exactly the same.
You can bring a view to the forefront, but that does not mean that it is either not visible. Remember that submissions can be of any size.
A UIView deeply immersed in a hierarchy may be partially visible, it may be obscured, or it may be behind some translucent appearance. Similarly, the front view cannot be seen at all if its opacity value or hidden flags are changed.
I think you want to check the subviews NSArray of your supervisor or UIWindow and check this out. I cannot remember what a front is, but it is either the first or the last object.
Eyeliners are drawn using the painting method. Representations are drawn in order from far to nearest, and the last object drawn is “in front”.
amattn
source share