我希望能够在另一个已经存在的UIView下添加Subview,我该怎么做?我无法找到任何关于此的内容。
UIView 方法怎么样:insertSubview:belowSubview:
.
它就在UIView文档的"管理视图层次结构"部分中。
您可以使用
:
[self.view insertSubview:topview belowSubview:buttomView];
在 Swift 中:
self.view.insertSubview(newView, belowSubview: yourLabel)