views:

30

answers:

1

I want to put a SuperView (with a transparent background) on top of my SubView. Is there a way of doing that?

Thanks in advance!

A: 
  1. Remove your "SubView" from your parent view.

  2. Add your "SuperView" as a subview of your parent view.

  3. Add your "SubView" as a subview of "SuperView".

Alex Reynolds
Sorry, I wasn't clear - the SuperView is actually the parent.
If that's the case, your SubView already has a SuperView: the parent view.
Alex Reynolds
But I would like to bring that parent in front of the SubView. How would I do that? Sorry for being so confusing, it's been a late night..
You can't. By definition the parent will always be the parent of the subview. You make a subview of the parent ("ParentSubView") and either rearrange the order of subviews of the parent or make the "SubView" a subview of "ParentSubView".
Alex Reynolds