xcode6 - How to add a image in background in my view in swift? -


I am trying to add an image background to my view, the controller of my SWIFT app, but the color is not available with the color. Are there other forms for it or is it necessary to add it to an image?

I am trying to create it with this code:

  imageName = "image.png" give self.view background color = UIColor.colorWithPatternImage (UIImage (Named: imageName))   

Thanks!

Comments

Popular posts from this blog

php - how to change mysql_result($res, 0, "url"); to mysqli -

c# - Textbox not clickable but editable -

Matlab transpose a table vector -