How to set a background image in view using Interface Builder
hi I want to set a background image into my view which 开发者_运维百科has several subview .
My approach to this is to:
- Add a UIImageView as a sibling to your subviews that is the size of the main view, and apply your Image to this view.
- All sibling views set the Background color to have an alpha of 0. This will make the view transparent, but not affect any elements they contain.
精彩评论