Adding A Background Image In Interface Builder

后端 未结 6 2183
庸人自扰
庸人自扰 2021-02-19 06:34

I\'m trying to add a custom image as a background for my application using Xcode 4.2, but I\'m not too sure how to do it. I can add plain colors as the background in Interface B

6条回答
  •  北荒
    北荒 (楼主)
    2021-02-19 07:14

    Just drag-and-drop the image from Finder to the extreme left pane of your Xcode window (where the list of files is shown). Now open your xib file and locate the image in your media library. Just drag-and-drop the image from the media library to your view. Adjust the size of the image as you need.

提交回复
热议问题