I would like to be able to addSubview beneath another already existing UIView, how can I do that? I haven't been able to find anything on this.
Asked
Active
Viewed 1.2k times
12
-
beneath, as in under (y-axis) or behind (z-axis)? – Krease Nov 15 '12 at 17:49
3 Answers
28
How about the UIView method: insertSubview:belowSubview:
.
It's right there in the "Managing the View Hierarchy" section of the UIView docs.

Kevin Jantzer
- 9,215
- 2
- 28
- 52

rdelmar
- 103,982
- 12
- 207
- 218
8
you can use :
[self.view insertSubview:topview belowSubview:buttomView];

shannoga
- 19,649
- 20
- 104
- 169