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

Delphi: missing interface declarations for UI Automation methods -

android - How to attach an image from an app to gmail -

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