From UIView docs:
(void)insertSubview:(UIView *)view atIndex:(NSInteger)index
It’s great that I can insert a UIView at a certain index, but I cannot find a way to READ what index a given UIView has.
I need to check whether the UIView is on top, or at the back …
I am almost 100% sure that the index is the same as the index of the subView inside the superViews
subviewsproperty.I just tested this with the following code and it works