How to tell whether on sub-view's is above another sub-view?

Posted by Horace Ho on Stack Overflow See other posts from Stack Overflow or by Horace Ho
Published on 2010-05-07T09:02:18Z Indexed on 2010/05/07 9:08 UTC
Read the original article Hit count: 155

Filed under:
|

Assume there are 3 sub-views (A, B, C) in a view. After a few rounds of random bringSubviewToFront and sendSubviewToBack on A, B, or C , how can I tell whether one sub-view (e.g. A) is on top of another sub-view (e.g. C)?

Whether they overlap each other is not required information.

Thanks!

© Stack Overflow or respective owner

Related posts about iphone

Related posts about uiview