开发者

How to set a background image in view using Interface Builder

开发者 https://www.devze.com 2023-01-27 15:20 出处:网络
hi I want to set a background image into my view which 开发者_运维百科has several subview .My approach to this is to:

hi I want to set a background image into my view which 开发者_运维百科has several subview .


My approach to this is to:

  1. Add a UIImageView as a sibling to your subviews that is the size of the main view, and apply your Image to this view.
  2. 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.
0

精彩评论

暂无评论...
验证码 换一张
取 消