swift - set background image xcode6 -


Hope this is not basic for you, how can I set a background image in Xcode 6. I have saved my image * .png saved the supported files just do not need line of code. Thank you.

Do you mean background image for the whole scene or a UIButton or something? For UIButton, when you select it in the storyboard, there will be a drop down menu in the attribute inspector, where you can set the background image.

If you want something for the whole scene, then you are probably better to use UIImageView as suggested by JMDUK, there will be a drop down menu to set the image in the property inspector. Use UIImageView to resize, use barriers etc. to fill your entire scene. Then arrange under the editors menu and send back your other UI elements will be at the top of your background image.

Comments

Popular posts from this blog

ios - Adding an SKSpriteNode to SKScene from a child SKSpriteNode -

Matlab transpose a table vector -

c# - Textbox not clickable but editable -