IPhone Interface Builder: Z-Index, Z-order of a button, image, ui element, etc?

前端 未结 7 914
独厮守ぢ
独厮守ぢ 2020-12-28 11:53

I\'m dragging things around in the Interface Builder... I\'d like to specify whether an image is in front (like an indicator) or behind of a button (like a background). I d

相关标签:
7条回答
  • 2020-12-28 12:16

    What worked for me was doing it in code:

    self.view.sendSubviewToBack(imageView);
    

    I don't know why but none of the other answers fixed it for good. I put the line above in the viewDidLoad method.


    0 讨论(0)
提交回复
热议问题