When using
[self.view addSubview:foo];
is there a way to specify which layer the object will go to? i.e. is it possible to not have the object added go to the top of the view layer above all objects? I use addSubview to dynamically add view objects, but I would like for some of them to be NOT on the top of the stack, if you know what I mean. I can elaborate more if my explanation is not understandable.
You can use one of those functions (all from UIView), depending on what you want to do
– bringSubviewToFront:
– sendSubviewToBack:
– insertSubview:atIndex:
– insertSubview:aboveSubview:
– insertSubview:belowSubview:
- exchangeSubviewAtIndex:withSubviewAtIndex:
(behaviors are pretty obvious with the names).