I know of a function that brings a view to the front.
[self.view bringSubviewToFront:myView];
I am wondering if there is a function that sends a subview to the back.
You can just select the view and then go to 'Editor > Arrange > Send to back' or drag the view in the document outline so to be the first subview of your controller's main view.
Try,
Objective C:
[self.view sendSubviewToBack: yourView];
Swift:
self.view.sendSubview(toBack: yourView)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With