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.
addSubview beneath another UIView
Asked Answered
beneath, as in under (y-axis) or behind (z-axis)? –
Clinical
How about the UIView method: insertSubview:belowSubview:
.
It's right there in the "Managing the View Hierarchy" section of the UIView docs.
you can use :
[self.view insertSubview:topview belowSubview:buttomView];
In Swift:
self.view.insertSubview(newView, belowSubview: yourLabel)
© 2022 - 2024 — McMap. All rights reserved.