Detect if a UIView is behind another UIView in parent
问题 I have a parent UIView with several subviews. The subviews are siblings - the child-views are not sub views of each other. (Each at the same heirarchical level in their superview) For instance: UIView *containerView = [[UIView alloc] initWithFrame:frame]; CustomUIView *childView = [[UIView alloc] initWithFrame:anotherFrame]; CustomUIView *yetAnotherChildView = [[UIView alloc] initWithFrame:anotherFrame]; [containerView addSubview:childView]; [containerView addSubview:yetAnotherChildView];