I want to add mapView, which I'm adding programatically, to the bottom of hierarchy view, as I already draw some of the elements beforehand, in the storyboard.
So, after i call method:
[self.view addSubview:self.map];
How do I put it on the bottom of the view hierarchy ?!
Just put it there directly instead.
[self.view insertSubview:_map atIndex:0];
"This method moves the specified view to the beginning of the array of views in the subviews property."
[self.view sendSubviewToBack: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