Is it possible to display a sub-view behind the parent view? Obviously you could do this if the views were siblings; my views however are part of a ViewController hierarchy, and as far as I can tell, a ViewController can’t have multiple views.
In other words, I have this hierarchy:
ViewController
-->ViewController's view
------>subview
Basically, I just want “subview” to be behind “ViewController’s view.” None of this is modal — both views are present the whole time.
Context: “ViewController’s view” is the main view of an OGL-based application. I need to display a constant background (user-selectable) behind the main view.
Justin is right, your question is confusing as placing a view (1) on top of another view (2) will obscure the original view (1). I think you meant to ask if you can add a subview “behind” or “below” the viewController’s “main” view. The answer is no you can only add subviews onto the “main” view (the viewcontroller’s view property).
However, just add the background view to the main view (the viewcontroller’s view property) and then add your other views on top.
Btw, viewController’s are meant to control multiple views (the main view and it’s children).